HomePhabricator

[ValueTracking] Fix crash in GetPointerBaseWithConstantOffset()
9966a4033e1bUnpublished

Authored by tstellarAMD on Sep 20 2016, 10:41 AM.

Unpublished Commit · Learn More

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

Description

[ValueTracking] Fix crash in GetPointerBaseWithConstantOffset()

Summary:
While walking defs of pointer operands we were assuming that the pointer
size would remain constant. This is not true, because addresspacecast
instructions may cast the pointer to an address space with a different
pointer width.

Reviewers: sanjoy, reames

Subscribers: wdng, llvm-commits

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