diff options
author | Jordan Rose <jordan_rose@apple.com> | 2014-03-07 19:19:56 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2014-03-07 19:19:56 +0000 |
commit | 05f44b4d1c2a5910e170435cd23321be316c7bb7 (patch) | |
tree | 5e61f5aae83de68d3f0d8c841642f930d5642fe7 /clang/lib/Frontend/CompilerInstance.cpp | |
parent | 700a991f0dc131fd0f4ef65e4bbe6ac8ab8837b7 (diff) | |
download | bcm5719-llvm-05f44b4d1c2a5910e170435cd23321be316c7bb7.tar.gz bcm5719-llvm-05f44b4d1c2a5910e170435cd23321be316c7bb7.zip |
[ADT] Update PointerIntPair to handle pointer types with more than 31 bits free.
Previously, the assertions in PointerIntPair would try to calculate the value
(1 << NumLowBitsAvailable); the inferred type here is 'int', so if there were
more than 31 bits available we'd get a shift overflow.
Also, add a rudimentary unit test file for PointerIntPair.
llvm-svn: 203273
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions