mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Fix -Asserts warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84687 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2bcf60a9cc
commit
a7cc65283a
@ -332,8 +332,9 @@ void ARMInstPrinter::printPredicateOperand(const MCInst *MI, unsigned OpNum) {
|
||||
}
|
||||
|
||||
void ARMInstPrinter::printSBitModifierOperand(const MCInst *MI, unsigned OpNum){
|
||||
if (unsigned Reg = MI->getOperand(OpNum).getReg()) {
|
||||
assert(Reg == ARM::CPSR && "Expect ARM CPSR register!");
|
||||
if (MI->getOperand(OpNum).getReg()) {
|
||||
assert(MI->getOperand(OpNum).getReg() == ARM::CPSR &&
|
||||
"Expect ARM CPSR register!");
|
||||
O << 's';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user