Check that TD isn't NULL before dereferencing it down this path.
authorNick Lewycky <nicholas@mxc.ca>
Thu, 25 Jul 2013 02:55:14 +0000 (02:55 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 25 Jul 2013 02:55:14 +0000 (02:55 +0000)
commitb97b1627316ef4a9eb7591ef4f814917ba054ff6
tree6cec003f84bb5da6f0978b552fb4d48ce0d35c4a
parent2d680824e3a5272e386aa6c1d2a66676de7899fd
Check that TD isn't NULL before dereferencing it down this path.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187099 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/invariant-nodatalayout.ll [new file with mode: 0644]