diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-10 23:37:34 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-10 23:37:34 +0000 |
| commit | e9624291b16d946f37530291d9e3e253e2db6a5e (patch) | |
| tree | 2a0f7e9569aa4079002cd179bcc2e1c9be5772f0 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
| parent | bb9c3c33e94f3e5a17990b7a8ab9d076d0c7e594 (diff) | |
| download | bcm5719-llvm-e9624291b16d946f37530291d9e3e253e2db6a5e.tar.gz bcm5719-llvm-e9624291b16d946f37530291d9e3e253e2db6a5e.zip | |
InstrProf: Read unsigned numbers with strtoul and strtoull
Fixes a bug where unsigned numbers are read using strtol and strtoll.
I don't have a testcase because this bug is effectively unobservable
right now. To expose the problem in the hash, we would need a function
with greater than INT64_MAX counters, which we don't handle anyway. To
expose the problem in the function count, we'd need a function with
greater than INT32_MAX counters; this is theoretically observable, but
it isn't a practical testcase to check in.
An upcoming commit changes the hash to be non-trivial, so we'll get some
coverage eventually.
<rdar://problem/16435801>
llvm-svn: 206001
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions

