AsmPrinter: avoid unused-variable warning
authorAlex Zinenko <zinenko@google.com>
Tue, 15 Oct 2019 13:50:34 +0000 (06:50 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 15 Oct 2019 13:51:01 +0000 (06:51 -0700)
commit98815cfdd935a21e4b7358485aefca6c8a8d77b8
treed0e82c3f938b3041c75ff9679b6b57810ea64fbc
parent300112e135f82b1f6faf8aa2ef266a27f07234de
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
mlir/lib/IR/AsmPrinter.cpp