diff options
author | Adrian Prantl <aprantl@apple.com> | 2017-03-16 18:33:01 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2017-03-16 18:33:01 +0000 |
commit | 4a7781aa38558f9f4ec2e764b0b5517e1a659360 (patch) | |
tree | 05dd9f500ebbc1aefbfe3a8820139f0fdff220ff /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 194b28ebb14d138b058f7902540b9e88958c3c24 (diff) | |
download | bcm5719-llvm-4a7781aa38558f9f4ec2e764b0b5517e1a659360.tar.gz bcm5719-llvm-4a7781aa38558f9f4ec2e764b0b5517e1a659360.zip |
Fix unused variable warnings.
llvm-svn: 297973
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index 26cb1a8c8b0..431055233e9 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -1358,14 +1358,14 @@ void llvm::salvageDebugInfo(Instruction &I) { }; auto &M = *I.getModule(); if (auto *BitCast = dyn_cast<BitCastInst>(&I)) - findDbgValues(&I, [&](DbgValueInst &DVI) { + findDbgValues(BitCast, [&](DbgValueInst &DVI) { // Bitcasts are entirely irrelevant for debug info. Rewrite the dbg.value // to use the cast's source. DVI.setOperand(0, MDWrap(I.getOperand(0))); DEBUG(dbgs() << "SALVAGE: " << DVI << '\n'); }); else if (auto *GEP = dyn_cast<GetElementPtrInst>(&I)) - findDbgValues(&I, [&](DbgValueInst &DVI) { + findDbgValues(GEP, [&](DbgValueInst &DVI) { unsigned BitWidth = M.getDataLayout().getPointerSizeInBits(GEP->getPointerAddressSpace()); APInt Offset(BitWidth, 0); @@ -1381,7 +1381,7 @@ void llvm::salvageDebugInfo(Instruction &I) { } }); else if (auto *Load = dyn_cast<LoadInst>(&I)) - findDbgValues(&I, [&](DbgValueInst &DVI) { + findDbgValues(Load, [&](DbgValueInst &DVI) { // Rewrite the load into DW_OP_deref. auto *DIExpr = DVI.getExpression(); DIBuilder DIB(M, /*AllowUnresolved*/ false); |