diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2011-10-11 00:13:24 +0000 | 
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2011-10-11 00:13:24 +0000 | 
| commit | ce3e02a343d69099f1b75d76838c810e958e4e84 (patch) | |
| tree | f87467d7bff9830f0ddd30975700508eec93cb09 /clang/lib/AST/ExprConstant.cpp | |
| parent | fd2d7dcc312916bff767158b1efef3460dbcf759 (diff) | |
| download | bcm5719-llvm-ce3e02a343d69099f1b75d76838c810e958e4e84.tar.gz bcm5719-llvm-ce3e02a343d69099f1b75d76838c810e958e4e84.zip | |
Extend lvalue evaluation in ExprConstant.cpp to handle CK_LValueBitCast (which is completely trivial).  PR8836.
llvm-svn: 141604
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
| -rw-r--r-- | clang/lib/AST/ExprConstant.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 3da744955a6..c0f913d7ed6 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -481,7 +481,10 @@ public:        return false;      case CK_NoOp: +    case CK_LValueBitCast:        return Visit(E->getSubExpr()); + +    // FIXME: Support CK_DerivedToBase and friends.      }    } | 

