aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Instrumentation
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
commitf3c0314310f4c82de6467c4fe4ec4114b9281f04 (patch)
treef3b21712401068d7f4af99efb26ace915cdaf8f6 /lib/Transforms/Instrumentation
parent003f5519129e5413768b3d6a309f36389f425ced (diff)
downloadexternal_llvm-f3c0314310f4c82de6467c4fe4ec4114b9281f04.zip
external_llvm-f3c0314310f4c82de6467c4fe4ec4114b9281f04.tar.gz
external_llvm-f3c0314310f4c82de6467c4fe4ec4114b9281f04.tar.bz2
DataFlowSanitizer: correctly combine labels in the case where they are equal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189133 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation')
-rw-r--r--lib/Transforms/Instrumentation/DataFlowSanitizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
index 232893d..2fa3383 100644
--- a/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
+++ b/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 {