commit | 7cd577bb0d3e237b35f959654d2905da3ac15497 | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Thu Aug 17 19:35:50 2017 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Thu Aug 17 19:35:50 2017 +0000 |
tree | 4d391a10c7c7250163f10068626d897e9e17845d | |
parent | d4daf4540ae11e14c79add3a1e815c29a46f6750 [diff] [blame] |
PR34161: support evaluation of 'void()' expressions in C++14 onwards. llvm-svn: 311115
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 041bede..be4b3af 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp
@@ -9787,6 +9787,8 @@ bool Success(const APValue &V, const Expr *e) { return true; } + bool ZeroInitialization(const Expr *E) { return true; } + bool VisitCastExpr(const CastExpr *E) { switch (E->getCastKind()) { default: