diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2011-03-13 17:09:40 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2011-03-13 17:09:40 +0000 |
commit | 31ad754c96673eefe89baf6994fe2c040f1b3dd7 (patch) | |
tree | 76ac239f6c78c93339c8b1e1a6de24133ffb82af /clang/lib/AST/ExprCXX.cpp | |
parent | 72216105433f8cde20b3314322cd6bb8e3a65ba1 (diff) | |
download | bcm5719-llvm-31ad754c96673eefe89baf6994fe2c040f1b3dd7.tar.gz bcm5719-llvm-31ad754c96673eefe89baf6994fe2c040f1b3dd7.zip |
Instead of storing an ASTContext* in FunctionProtoTypes with computed noexcept specifiers, unique FunctionProtoTypes with a ContextualFoldingSet, as suggested by John McCall.
llvm-svn: 127568
Diffstat (limited to 'clang/lib/AST/ExprCXX.cpp')
-rw-r--r-- | clang/lib/AST/ExprCXX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ExprCXX.cpp b/clang/lib/AST/ExprCXX.cpp index fd94dd108db..35c2d410082 100644 --- a/clang/lib/AST/ExprCXX.cpp +++ b/clang/lib/AST/ExprCXX.cpp @@ -100,9 +100,9 @@ void CXXNewExpr::AllocateArgsArray(ASTContext &C, bool isArray, SubExprs = new (C) Stmt*[TotalSize]; } -bool CXXNewExpr::shouldNullCheckAllocation() const { +bool CXXNewExpr::shouldNullCheckAllocation(ASTContext &Ctx) const { return getOperatorNew()->getType()-> - castAs<FunctionProtoType>()->isNothrow(); + castAs<FunctionProtoType>()->isNothrow(Ctx); } // CXXDeleteExpr |