From 353c84e747924745eb0e5df4defc2afd90a1758e Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Sat, 27 Feb 2016 07:00:35 +0000 Subject: [PATCH] CodeGen: Avoid implicit conversion in MachineInstrBuilder, NFC Avoid another implicit conversion from MachineInstrBundleIterator to MachineInstr*, this time in MachineInstrBuilder.h (this is in pursuit of PR26753). llvm-svn: 262118 --- llvm/include/llvm/CodeGen/MachineInstrBuilder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/CodeGen/MachineInstrBuilder.h b/llvm/include/llvm/CodeGen/MachineInstrBuilder.h index c8afa37..641791a 100644 --- a/llvm/include/llvm/CodeGen/MachineInstrBuilder.h +++ b/llvm/include/llvm/CodeGen/MachineInstrBuilder.h @@ -438,9 +438,9 @@ public: assert(B != E && "No instructions to bundle"); ++B; while (B != E) { - MachineInstr *MI = B; + MachineInstr &MI = *B; ++B; - MI->bundleWithPred(); + MI.bundleWithPred(); } } -- 2.7.4