Add missing check for presence of target data.
authorRichard Osborne <richard@xmos.com>
Mon, 24 Sep 2012 17:10:03 +0000 (17:10 +0000)
committerRichard Osborne <richard@xmos.com>
Mon, 24 Sep 2012 17:10:03 +0000 (17:10 +0000)
commitbdc76fc75ab915214a35649d99fcac0341585ef5
tree098e9b02acb66c3d197fafcbda166c811eea1e80
parent84d882ee56b76d571971e9f265be1611b1583720
Add missing check for presence of target data.

This avoids a crash in visitAllocaInst when target data isn't available.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164539 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
test/Transforms/InstCombine/2012-09-24-MemcpyFromGlobalCrash.ll [new file with mode: 0644]