summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2008-11-22 21:04:56 +0000
committerAnders Carlsson <andersca@mac.com>2008-11-22 21:04:56 +0000
commit59689ed7644e816eee05330426ee041183501935 (patch)
treeba4072257fdc4c0b38c0f87af378bea04c122b24 /clang/lib/Sema/SemaDecl.cpp
parent2fedf0e8f722e64cf8b0c878c9346dc5a998919b (diff)
downloadbcm5719-llvm-59689ed7644e816eee05330426ee041183501935.tar.gz
bcm5719-llvm-59689ed7644e816eee05330426ee041183501935.zip
Use Expr::Evaluate for case statements. Fixes PR2525
llvm-svn: 59881
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 0b05177dd37..ef24d1a34a8 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud