mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Fix invalid asserts, use llvm_unreachable instead.
llvm-svn: 167976
This commit is contained in:
parent
e40f4623cd
commit
a24ecce5f1
@ -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