OSDN Git Service

GVN-hoist: do not dereference null pointers
authorSebastian Pop <sebpop@gmail.com>
Thu, 22 Sep 2016 17:22:58 +0000 (17:22 +0000)
committerSebastian Pop <sebpop@gmail.com>
Thu, 22 Sep 2016 17:22:58 +0000 (17:22 +0000)
commit7924acd64f3ff5099ddbfe3f5964a919c22b639e
tree10e3cac84273b34fb5182d97906b3a264bb685c6
parent7b83fe6d98ad44fec8929a63fbcdf5c36acca0e3
GVN-hoist: do not dereference null pointers

there may be basic blocks without memory accesses, in which case the
list of accesses is a null pointer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282175 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVNHoist.cpp