mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
Fix invalid asserts, use llvm_unreachable instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167976 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9292136787
commit
7454fc2e87
@ -631,7 +631,7 @@ void NVPTXAsmPrinter::printLdStCode(const MachineInstr *MI, int opNum,
|
||||
O << ".global";
|
||||
break;
|
||||
default:
|
||||
assert("wrong value");
|
||||
llvm_unreachable("Wrong Address Space");
|
||||
}
|
||||
}
|
||||
else if (!strcmp(Modifier, "sign")) {
|
||||
@ -649,10 +649,10 @@ void NVPTXAsmPrinter::printLdStCode(const MachineInstr *MI, int opNum,
|
||||
O << ".v4";
|
||||
}
|
||||
else
|
||||
assert("unknown modifier");
|
||||
llvm_unreachable("Unknown Modifier");
|
||||
}
|
||||
else
|
||||
assert("unknown modifier");
|
||||
llvm_unreachable("Empty Modifier");
|
||||
}
|
||||
|
||||
void NVPTXAsmPrinter::emitDeclaration (const Function *F, raw_ostream &O) {
|
||||
|
Loading…
Reference in New Issue
Block a user