summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/LowerGC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/Scalar/LowerGC.cpp')
-rw-r--r--lib/Transforms/Scalar/LowerGC.cpp5
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]);
}