HomePhabricator

[Loads] Fix crash in is isDereferenceableAndAlignedPointer()
6da97268804dUnpublished

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

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

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