diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-03-15 20:55:27 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-03-15 20:55:27 +0000 |
commit | e738fc5145984235a8f084077791271c4d266236 (patch) | |
tree | 913ac747058266d19a5419a0aca03288268c620d /lib/StaticAnalyzer/Core/BugReporterVisitors.cpp | |
parent | 1fd8d46d222fab7f17b91846e2c50bef640a60a0 (diff) |
[AST] Add a fast path to ConstantArrayType::getNumAddressingBits().
- This fast path is almost 100% effective on real code, and lets us avoid
multiple allocations of 128-bit APSInt objects in the common case.
- As with any overflow-check-skipping-code, I'd appreciate someone double
checking my logic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177183 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/BugReporterVisitors.cpp')
0 files changed, 0 insertions, 0 deletions