1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

[AArch64][RegisterBankInfo] Fix typo in the logic used in assert.

Thanks to David Binderman <dcb314@hotmail.com> for bringing it to my
attention.

llvm-svn: 288688
This commit is contained in:
Quentin Colombet 2016-12-05 19:02:37 +00:00
parent 57907269da
commit 2b33c0d2b0

View 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);