summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ExprCXX.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2011-03-13 17:09:40 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2011-03-13 17:09:40 +0000
commit31ad754c96673eefe89baf6994fe2c040f1b3dd7 (patch)
tree76ac239f6c78c93339c8b1e1a6de24133ffb82af /clang/lib/AST/ExprCXX.cpp
parent72216105433f8cde20b3314322cd6bb8e3a65ba1 (diff)
downloadbcm5719-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.cpp4
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
OpenPOWER on IntegriCloud