summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprCXX.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-02-28 01:32:25 +0000
committerDouglas Gregor <dgregor@apple.com>2009-02-28 01:32:25 +0000
commit89ee6822d8a6ac9fad18105c8f68194315c6edc5 (patch)
tree5924f75913729abf792257d488d767f90fbb1cae /clang/lib/Sema/SemaExprCXX.cpp
parent2f235908eda485e9100876245da88a1d01d2c6e0 (diff)
downloadbcm5719-llvm-89ee6822d8a6ac9fad18105c8f68194315c6edc5.tar.gz
bcm5719-llvm-89ee6822d8a6ac9fad18105c8f68194315c6edc5.zip
Eliminate CXXRecordType
llvm-svn: 65671
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
-rw-r--r--clang/lib/Sema/SemaExprCXX.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index 60234691932..37e4fdb24d5 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -402,8 +402,8 @@ bool Sema::FindAllocationFunctions(SourceLocation StartLoc, SourceRange Range,
DeclarationName NewName = Context.DeclarationNames.getCXXOperatorName(
IsArray ? OO_Array_New : OO_New);
if (AllocType->isRecordType() && !UseGlobal) {
- CXXRecordDecl *Record = cast<CXXRecordType>(AllocType->getAsRecordType())
- ->getDecl();
+ CXXRecordDecl *Record
+ = cast<CXXRecordDecl>(AllocType->getAsRecordType()->getDecl());
// FIXME: We fail to find inherited overloads.
if (FindAllocationOverload(StartLoc, Range, NewName, &AllocArgs[0],
AllocArgs.size(), Record, /*AllowMissing=*/true,
OpenPOWER on IntegriCloud