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 | 8026f6d82f7fa544bc0453714fe94bca62a1196e (patch) | |
tree | 00bb7e23b1bc02496a1677eec6706486d10de725 /lib/AST/ExprCXX.cpp | |
parent | 0b34dbaafe412a8437212805dcafa4565ee80ce5 (diff) |
Instead of storing an ASTContext* in FunctionProtoTypes with computed noexcept specifiers, unique FunctionProtoTypes with a ContextualFoldingSet, as suggested by John McCall.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127568 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ExprCXX.cpp')
-rw-r--r-- | lib/AST/ExprCXX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/ExprCXX.cpp b/lib/AST/ExprCXX.cpp index fd94dd108d..35c2d41008 100644 --- a/lib/AST/ExprCXX.cpp +++ b/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 |