diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-11-17 22:56:20 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-11-17 22:56:20 +0000 |
commit | e24f5fc8c763f1b5536b8d70dd510ca959db3a80 (patch) | |
tree | e704c4c84263ed70f563d70aa70c92aa672d08a0 /lib/CodeGen | |
parent | c69c42e939e6bdaa56d162cc36da4f6b6c53e8db (diff) |
Constant expression evaluation: add support for evaluation of member pointers
and base-to-derived casts, and add proper handling of temporaries.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144926 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index 819fc3fa08..7485c71d7d 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -1074,6 +1074,7 @@ llvm::Constant *CodeGenModule::EmitConstantExpr(const Expr *E, case APValue::Array: case APValue::Struct: case APValue::Union: + case APValue::MemberPointer: break; } } |