diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-07-08 19:31:47 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-07-08 19:31:47 +0000 |
commit | 5bff51138da9ffbbbdcfc950b6e4c242b4d9af0f (patch) | |
tree | 19d80f95546b795ad7b41b1550202786e684ca5d /llvm/lib | |
parent | b4b9db81f22b718eee5f63702cfb0b896f481ebc (diff) | |
download | bcm5719-llvm-5bff51138da9ffbbbdcfc950b6e4c242b4d9af0f.tar.gz bcm5719-llvm-5bff51138da9ffbbbdcfc950b6e4c242b4d9af0f.zip |
AsmPrinter: Avoid implicit iterator conversions in DbgValueHistoryCalculator, NFC
llvm-svn: 274911
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp | 4 |
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 |