summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprCXX.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-10-08 23:50:27 +0000
committerDouglas Gregor <dgregor@apple.com>2010-10-08 23:50:27 +0000
commit0bf3140424a0a13a928a4e6bf0f112e6167a5636 (patch)
treeaef7f4fa057fc4672999ce4ec62b01064035c242 /clang/lib/Sema/SemaExprCXX.cpp
parent959fcc6c634cb4d4fd8bd8c8b4bc3e6b99ebc228 (diff)
downloadbcm5719-llvm-0bf3140424a0a13a928a4e6bf0f112e6167a5636.tar.gz
bcm5719-llvm-0bf3140424a0a13a928a4e6bf0f112e6167a5636.zip
Implement C++0x scoped enumerations, from Daniel Wallin! (and tweaked a
bit by me). llvm-svn: 116122
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
-rw-r--r--clang/lib/Sema/SemaExprCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index 4618dcf2161..e193cafbc2c 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -751,7 +751,7 @@ Sema::BuildCXXNew(SourceLocation StartLoc, bool UseGlobal,
ArraySize = ConvertedSize.take();
SizeType = ArraySize->getType();
- if (!SizeType->isIntegralOrEnumerationType())
+ if (!SizeType->isIntegralOrUnscopedEnumerationType())
return ExprError();
// Let's see if this is a constant < 0. If so, we reject it out of hand.
OpenPOWER on IntegriCloud