]> granicus.if.org Git - llvm/commit
[GVN] Fix a crash bug around non-integral pointers
authorPhilip Reames <listmail@philipreames.com>
Tue, 19 Feb 2019 23:07:15 +0000 (23:07 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 19 Feb 2019 23:07:15 +0000 (23:07 +0000)
commitaf5e339c6b385fb8758c0659a18219e45a1eff9e
tree1e18de11300934f36eabceab838b8a7ab6d36362
parent06157535f434ce1bf754e221861d3fcc39a866df
[GVN] Fix a crash bug around non-integral pointers

If we encountered a location where we tried to forward the value of a memset to a load of a non-integral pointer, we crashed.  Such a forward is not legal in general, but we can forward null pointers.  Test for both cases are included.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354399 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/VNCoercion.cpp
test/Transforms/GVN/non-integral-pointers.ll