InferAddressSpaces: Avoid looking up deleted values
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 28 Apr 2017 22:18:19 +0000 (22:18 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 28 Apr 2017 22:18:19 +0000 (22:18 +0000)
commitc20ccd2c0209fdaae7f7efe066c4b59b4ca46842
treef8069addd5016e531b6f59a15cb618f5a5189fca
parenta1e734050cf2495f551ce3b97c0790a8232ea164
InferAddressSpaces: Avoid looking up deleted values

While looking at pure addressing expressions, it's possible
for the value to appear later in Postorder.

I haven't been able to come up with a testcase where this
exhibits an actual issue, but if you insert a dump before
the value map lookup, a few testcases crash.

llvm-svn: 301705
llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp