summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-27 07:00:35 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-27 07:00:35 +0000
commit353c84e747924745eb0e5df4defc2afd90a1758e (patch)
treec50c92a79a007822bac84c31ce69771e13bab39f /llvm
parent4fb9e516647f45e6953bfb3ac6385fbab67391b2 (diff)
downloadbcm5719-llvm-353c84e747924745eb0e5df4defc2afd90a1758e.tar.gz
bcm5719-llvm-353c84e747924745eb0e5df4defc2afd90a1758e.zip
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
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/CodeGen/MachineInstrBuilder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineInstrBuilder.h b/llvm/include/llvm/CodeGen/MachineInstrBuilder.h
index c8afa3715e0..641791a7bbb 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();
}
}
OpenPOWER on IntegriCloud