summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-07-08 19:31:47 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-07-08 19:31:47 +0000
commit5bff51138da9ffbbbdcfc950b6e4c242b4d9af0f (patch)
tree19d80f95546b795ad7b41b1550202786e684ca5d /llvm/lib/CodeGen/AsmPrinter
parentb4b9db81f22b718eee5f63702cfb0b896f481ebc (diff)
downloadbcm5719-llvm-5bff51138da9ffbbbdcfc950b6e4c242b4d9af0f.tar.gz
bcm5719-llvm-5bff51138da9ffbbbdcfc950b6e4c242b4d9af0f.zip
AsmPrinter: Avoid implicit iterator conversions in DbgValueHistoryCalculator, NFC
llvm-svn: 274911
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp b/llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp
index 21d816bc997..adc536f1add 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp
@@ -138,12 +138,12 @@ static const MachineInstr *getFirstEpilogueInst(const MachineBasicBlock &MBB) {
E = MBB.rend();
I != E; ++I) {
if (I->getDebugLoc() != LastLoc)
- return Res;
+ return &*Res;
Res = &*I;
}
// If all instructions have the same debug location, assume whole MBB is
// an epilogue.
- return MBB.begin();
+ return &*MBB.begin();
}
// \brief Collect registers that are modified in the function body (their
OpenPOWER on IntegriCloud