projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dcd8b0
)
Fix unused variable from r240792.
author
Alex Lorenz
<arphaman@gmail.com>
Fri, 26 Jun 2015 17:07:27 +0000
(17:07 +0000)
committer
Alex Lorenz
<arphaman@gmail.com>
Fri, 26 Jun 2015 17:07:27 +0000
(17:07 +0000)
The variable 'I' wasn't used when assertions were disabled.
This commit ensures that 'I' is used outside of an assert.
llvm-svn: 240797
llvm/lib/CodeGen/MIRPrinter.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/MIRPrinter.cpp
b/llvm/lib/CodeGen/MIRPrinter.cpp
index
f9595f8
..
9446849
100644
(file)
--- a/
llvm/lib/CodeGen/MIRPrinter.cpp
+++ b/
llvm/lib/CodeGen/MIRPrinter.cpp
@@
-90,6
+90,7
@@
void MIRPrinter::print(const MachineFunction &MF) {
// map back to the correct MBBs when parsing the output.
assert(MBB.getNumber() == I++ &&
"Can't print MBBs that aren't sequentially numbered");
+ (void)I;
yaml::MachineBasicBlock YamlMBB;
convert(YamlMBB, MBB);
YamlMF.BasicBlocks.push_back(YamlMBB);