commit | ce3e02a343d69099f1b75d76838c810e958e4e84 | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Tue Oct 11 00:13:24 2011 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Tue Oct 11 00:13:24 2011 +0000 |
tree | f87467d7bff9830f0ddd30975700508eec93cb09 | |
parent | fd2d7dcc312916bff767158b1efef3460dbcf759 [diff] [blame] |
Extend lvalue evaluation in ExprConstant.cpp to handle CK_LValueBitCast (which is completely trivial). PR8836. llvm-svn: 141604
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 3da7449..c0f913d 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp
@@ -481,7 +481,10 @@ return false; case CK_NoOp: + case CK_LValueBitCast: return Visit(E->getSubExpr()); + + // FIXME: Support CK_DerivedToBase and friends. } }