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)
commit2fd29bfb9068381e22fe052e6925394c56d126e8
treecf31425e02d4e8307726b621abca687bfecb1cbe
parent8493cad160cedf0226f2f26a5cbee01985de975a
Add missing check for presence of target data.

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

llvm-svn: 164539
llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
llvm/test/Transforms/InstCombine/2012-09-24-MemcpyFromGlobalCrash.ll [new file with mode: 0644]