]> granicus.if.org Git - llvm/commitdiff
[AArch64][RegisterBankInfo] Fix typo in the logic used in assert.
authorQuentin Colombet <qcolombet@apple.com>
Mon, 5 Dec 2016 19:02:37 +0000 (19:02 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Mon, 5 Dec 2016 19:02:37 +0000 (19:02 +0000)
Thanks to David Binderman <dcb314@hotmail.com> for bringing it to my
attention.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288688 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64RegisterBankInfo.cpp

index 962c4c79ae2c02d3ce9f24d4988d56e9cf1c26f9..fb03252219f5a6fa3617e8f6f2481bee717a7820 100644 (file)
@@ -370,7 +370,7 @@ void AArch64RegisterBankInfo::applyMappingImpl(
   case TargetOpcode::G_BITCAST:
   case TargetOpcode::G_LOAD: {
     // Those ID must match getInstrAlternativeMappings.
-    assert((OpdMapper.getInstrMapping().getID() >= 1 ||
+    assert((OpdMapper.getInstrMapping().getID() >= 1 &&
             OpdMapper.getInstrMapping().getID() <= 4) &&
            "Don't know how to handle that ID");
     return applyDefaultMapping(OpdMapper);