HomePhabricator

[Loads] Fix crash in is isDereferenceableAndAlignedPointer()

Authored by tstellarAMD on Sep 20 2016, 11:31 AM.

Description

[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

Subscribers: wdng, llvm-commits

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