| commit | 05f44b4d1c2a5910e170435cd23321be316c7bb7 | [log] [tgz] |
|---|---|---|
| author | Jordan Rose <jordan_rose@apple.com> | Fri Mar 07 19:19:56 2014 +0000 |
| committer | Jordan Rose <jordan_rose@apple.com> | Fri Mar 07 19:19:56 2014 +0000 |
| tree | 5e61f5aae83de68d3f0d8c841642f930d5642fe7 | |
| parent | 700a991f0dc131fd0f4ef65e4bbe6ac8ab8837b7 [diff] |
[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