diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-04-04 21:07:10 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-04-04 21:07:10 +0000 |
commit | 4e5d47f436bb8a6a5c18cbcb4af7b91cf9e903c3 (patch) | |
tree | 5f98bd5ac9f13dfbd57b9fa81395908a521e56c4 /llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | |
parent | 11aa48a36fc1cca4161d0aa35cdd343dd81ca1b8 (diff) | |
download | bcm5719-llvm-4e5d47f436bb8a6a5c18cbcb4af7b91cf9e903c3.tar.gz bcm5719-llvm-4e5d47f436bb8a6a5c18cbcb4af7b91cf9e903c3.zip |
[opaque pointer type] More GEP API migrations
llvm-svn: 234108
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp index 7a87354ee0a..c1ddfc84102 100644 --- a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp @@ -1568,10 +1568,11 @@ void DFSanVisitor::visitCallSite(CallSite CS) { ArrayType *VarArgArrayTy = ArrayType::get(DFSF.DFS.ShadowTy, VarArgSize); AllocaInst *VarArgShadow = new AllocaInst(VarArgArrayTy, "", DFSF.F->getEntryBlock().begin()); - Args.push_back(IRB.CreateConstGEP2_32(VarArgShadow, 0, 0)); + Args.push_back(IRB.CreateConstGEP2_32(VarArgArrayTy, VarArgShadow, 0, 0)); for (unsigned n = 0; i != e; ++i, ++n) { - IRB.CreateStore(DFSF.getShadow(*i), - IRB.CreateConstGEP2_32(VarArgShadow, 0, n)); + IRB.CreateStore( + DFSF.getShadow(*i), + IRB.CreateConstGEP2_32(VarArgArrayTy, VarArgShadow, 0, n)); Args.push_back(*i); } } |