diff options
author | Anders Carlsson <andersca@mac.com> | 2008-11-22 21:04:56 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-11-22 21:04:56 +0000 |
commit | 51fe996231b1d7199f76e4005ff4c943d5deeecd (patch) | |
tree | 1875a61857e1db12563ccffd71b5da30363adc4c /lib/Sema/SemaDecl.cpp | |
parent | f3a05d93628242b787f9cc26b6ce5baf0acd00a1 (diff) |
Use Expr::Evaluate for case statements. Fixes PR2525
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59881 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 0b05177dd3..ef24d1a34a 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -1488,7 +1488,7 @@ static const Expr* FindExpressionBaseAddress(const Expr* E) { } } -bool Sema::CheckArithmeticConstantExpression(const Expr* Init) { +bool Sema::CheckArithmeticConstantExpression(const Expr* Init) { switch (Init->getStmtClass()) { default: InitializerElementNotConstant(Init); |