diff options
author | Chris Lattner <sabre@nondot.org> | 2007-09-12 17:53:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-09-12 17:53:10 +0000 |
commit | 36597a5ddb11d9f84638a8e1e8cfa28292eeced0 (patch) | |
tree | d6a0bbbdc7bea7f15aa635128f2a5fddb4c6ae1f /lib | |
parent | ea58310496531693ff58563906330480548378bb (diff) |
Change llvm.gcroot to not init the root to null at runtime, this prevents
using it for live-in values etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/LowerGC.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/LowerGC.cpp b/lib/Transforms/Scalar/LowerGC.cpp index 98070995af..bac7ac799b 100644 --- a/lib/Transforms/Scalar/LowerGC.cpp +++ b/lib/Transforms/Scalar/LowerGC.cpp @@ -284,10 +284,7 @@ bool LowerGC::runOnFunction(Function &F) { new StoreInst(Null, RootPtrPtr, IP); // Each occurrance of the llvm.gcroot intrinsic now turns into an - // initialization of the slot with the address and a zeroing out of the - // address specified. - new StoreInst(Constant::getNullValue(PtrLocTy->getElementType()), - GCRoots[i]->getOperand(1), GCRoots[i]); + // initialization of the slot with the address. new StoreInst(GCRoots[i]->getOperand(1), RootPtrPtr, GCRoots[i]); } |