[AArch64] Revise a warning fix
authorKazu Hirata <kazu@google.com>
Tue, 14 Dec 2021 18:46:57 +0000 (10:46 -0800)
committerKazu Hirata <kazu@google.com>
Tue, 14 Dec 2021 18:46:57 +0000 (10:46 -0800)
commitee99426c770605bd3eacc0d908a9b30e7f61dab9
treead3b02a17e29663434fe4226a86a0e48698cfa17
parent6a44013b0e319979ce6ea9ead2a740564e434f76
[AArch64] Revise a warning fix

This patch revises the warning fix done in
a93b1792f1c8f7e2e7c931993110dc48f7ddba01.  Specifically, it rolls the
MRI.getType call into the assert, thereby avoiding the named variable.
llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp