Fix a constant folding address space place I missed.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 17 Sep 2013 23:23:16 +0000 (23:23 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 17 Sep 2013 23:23:16 +0000 (23:23 +0000)
commit2334b0e8023bc382585a08386510cf29b3d541a6
tree179bdc4106993e50616a416efd63688d63d250c8
parent28860823ad34d41d4f58561dc14a982fb0843fdd
Fix a constant folding address space place I missed.

If address space 0 was smaller than the address space
in a constant inttoptr/ptrtoint pair, the wrong mask size
would be used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190899 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp
test/Transforms/InstCombine/constant-fold-address-space-pointer.ll