Grab an LLVM Context from an instruction that exists rather than one
authorDan Gohman <gohman@apple.com>
Sun, 27 Sep 2009 16:10:30 +0000 (16:10 +0000)
committerDan Gohman <gohman@apple.com>
Sun, 27 Sep 2009 16:10:30 +0000 (16:10 +0000)
commitf37cfed7911971e0326ed0b2de526bcc26c92950
tree597dd061a94691997ef80ad5d7f2ad09313198e2
parent3479d18b98694d9db6c2897ea909e6e381abfe92
Grab an LLVM Context from an instruction that exists rather than one
that is deleted in some situations. This fixes a use-after-free.

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