diff options
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | lib/Sema/SemaExprCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index 753fd5efc1..6b0c04440a 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -243,7 +243,7 @@ Sema::ActOnCXXNew(SourceLocation StartLoc, bool UseGlobal, } QualType AllocType = GetTypeForDeclarator(D, /*Scope=*/0, Skip); - if (D.getInvalidType()) + if (D.isInvalidType()) return ExprError(); if (CheckAllocatedType(AllocType, D)) |