From 0e6cccfb53f66749ddd871c507e081f9694fbb8d Mon Sep 17 00:00:00 2001 From: Quentin Colombet Date: Mon, 5 Dec 2016 19:02:37 +0000 Subject: [PATCH] [AArch64][RegisterBankInfo] Fix typo in the logic used in assert. Thanks to David Binderman for bringing it to my attention. llvm-svn: 288688 --- llvm/lib/Target/AArch64/AArch64RegisterBankInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/AArch64/AArch64RegisterBankInfo.cpp b/llvm/lib/Target/AArch64/AArch64RegisterBankInfo.cpp index 962c4c7..fb03252 100644 --- a/llvm/lib/Target/AArch64/AArch64RegisterBankInfo.cpp +++ b/llvm/lib/Target/AArch64/AArch64RegisterBankInfo.cpp @@ -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); -- 2.7.4