aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2012-03-05 21:02:05 +0000
committerDaniel Dunbar <daniel@zuster.org>2012-03-05 21:02:05 +0000
commit7034fb6c7be710883a970f82cb2da97bf1cf5cda (patch)
tree2e94bfe57abd9a1e9add08766ea59667d6583eff /lib/AST/DeclBase.cpp
parentd38f79543136ba68cd14b1dab0856474df1fbfd5 (diff)
ASTContext: Don't use nothrow specifications on the new operators for allocating
from the ASTContext. - Doing so requires the compiler to generate null checks against the returned result, but the BumpPtrAllocator never returns null pointers. - The optimizer can usually eliminate such checks, but not always, so this gives us tighter codegen in some places. - It would be really nice if we could just use __builtin_unreachable or something to tell the optimizer that the allocator never returns null, but LLVM isn't currently that smart. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclBase.cpp')
0 files changed, 0 insertions, 0 deletions