]> granicus.if.org Git - llvm/commit
[Loads] Fix crash in is isDereferenceableAndAlignedPointer()
authorTom Stellard <thomas.stellard@amd.com>
Fri, 28 Oct 2016 15:32:28 +0000 (15:32 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 28 Oct 2016 15:32:28 +0000 (15:32 +0000)
commitd0b25b00412c2654d2d66b2d25d1fc1bf3723906
tree39d643ed949fce99102a6a3d23af339abcfb2164
parent749a022c0b11c112fb5f19dc271bc7a42fb08f07
[Loads] Fix crash in is isDereferenceableAndAlignedPointer()

Summary:
We were trying to add APInt values with different bit sizes after
visiting an addrspacecast instruction which changed the bit width
of the pointer.

Reviewers: majnemer, hfinkel

Subscribers: hfinkel, wdng, llvm-commits

Differential Revision: https://reviews.llvm.org/D24774

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285407 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/Loads.cpp
test/Analysis/ValueTracking/dereferenceable-and-aligned.ll [new file with mode: 0644]