summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2013-08-23 18:45:06 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2013-08-23 18:45:06 +0000
commita96296f3ab77848bdcb55800e0ef3e29a45ab344 (patch)
tree8797bc501e13c944ae64332353e210376ee06fda /llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
parent73ec2ae91e2d0c4f848bb7f2be50f7fd8981953e (diff)
downloadbcm5719-llvm-a96296f3ab77848bdcb55800e0ef3e29a45ab344.tar.gz
bcm5719-llvm-a96296f3ab77848bdcb55800e0ef3e29a45ab344.zip
DataFlowSanitizer: correctly combine labels in the case where they are equal.
llvm-svn: 189133
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
index 232893dac36..2fa33834f1f 100644
--- a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
@@ -775,7 +775,7 @@ Value *DataFlowSanitizer::combineShadows(Value *V1, Value *V2,
BasicBlock *Tail = BI->getSuccessor(0);
PHINode *Phi = PHINode::Create(ShadowTy, 2, "", Tail->begin());
Phi->addIncoming(Call, Call->getParent());
- Phi->addIncoming(ZeroShadow, Head);
+ Phi->addIncoming(V1, Head);
Pos = Phi;
return Phi;
} else {
OpenPOWER on IntegriCloud