forked from OSchip/llvm-project
AsmPrinter: avoid unused-variable warning
The value defined in a loop was not being used and the function producing it re-evaluated instead. Use the value to avoid both the warning and the re-evaluation. PiperOrigin-RevId: 274794459
This commit is contained in:
parent
300112e135
commit
98815cfdd9
|
@ -1862,7 +1862,7 @@ void IntegerSet::print(raw_ostream &os) const {
|
|||
|
||||
void Value::print(raw_ostream &os) {
|
||||
if (auto *op = getDefiningOp())
|
||||
return getDefiningOp()->print(os);
|
||||
return op->print(os);
|
||||
// TODO: Improve this.
|
||||
assert(isa<BlockArgument>(*this));
|
||||
os << "<block argument>\n";
|
||||
|
|
Loading…
Reference in New Issue