diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-10-04 20:31:48 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-10-04 20:31:48 +0000 |
commit | 118c6c0dd659d34af2ab17a126f45c1e3e02e94a (patch) | |
tree | 6ea9bb9a74f8724100f69f25c03a3527fe4f080b /lib/StaticAnalyzer/Checkers/CStringChecker.cpp | |
parent | 68af536046461b514b59aedac016b52784ece3f7 (diff) |
Remove a nonsensical bit of code from InitListChecker::getStructuredSubobjectInit which was increasing the reserved size for an init list past its maximum possible size. Fixes PR11056, a case where we were reserving a bunch of memory for arrays that was never actually used.
(No testcase because I don't think we have any way to actually write a testcase for this; the chosen value of NumElements has no effects on anything other than performance and memory usage.)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/CStringChecker.cpp')
0 files changed, 0 insertions, 0 deletions