diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-04-26 21:31:17 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-04-26 21:31:17 +0000 |
| commit | 8385a069290100fad3aed65f12fc3f79a4d2b9f3 (patch) | |
| tree | 1f6b559ebf7eee31191ad333363f5cfc88613ae8 /clang/lib/AST/ExprConstant.cpp | |
| parent | 5d284ae8a0c6d01880a264a3dad8c29dac72bfba (diff) | |
| download | bcm5719-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.cpp | 2 |
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; |

