summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ExprConstant.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-26 21:31:17 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-26 21:31:17 +0000
commit8385a069290100fad3aed65f12fc3f79a4d2b9f3 (patch)
tree1f6b559ebf7eee31191ad333363f5cfc88613ae8 /clang/lib/AST/ExprConstant.cpp
parent5d284ae8a0c6d01880a264a3dad8c29dac72bfba (diff)
downloadbcm5719-llvm-8385a069290100fad3aed65f12fc3f79a4d2b9f3.tar.gz
bcm5719-llvm-8385a069290100fad3aed65f12fc3f79a4d2b9f3.zip
Introduce Type::isStructureOrClassType(), which does the obvious
thing. Audit all uses of Type::isStructure(), changing those calls to isStructureOrClassType() as needed (which is alsmost everywhere). Fixes the remaining failure in Boost.Utility/Swap. llvm-svn: 102386
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r--clang/lib/AST/ExprConstant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index a80d50a5070..a52cf6fe4c8 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/lib/AST/ExprConstant.cpp
@@ -968,7 +968,7 @@ static int EvaluateBuiltinClassifyType(const CallExpr *E) {
return complex_type_class;
else if (ArgTy->isFunctionType())
return function_type_class;
- else if (ArgTy->isStructureType())
+ else if (ArgTy->isStructureOrClassType())
return record_type_class;
else if (ArgTy->isUnionType())
return union_type_class;
OpenPOWER on IntegriCloud