[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.

llvm-svn: 288688

llvm/lib/Target/AArch64/AArch64RegisterBankInfo.cpp

index 962c4c7..fb03252 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);