mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-22 20:05:38 +00:00
Be picky
llvm-svn: 15400
This commit is contained in:
parent
ae25608f8b
commit
d308e8dbd8
@ -75,8 +75,12 @@ void AsmWriterEmitter::run(std::ostream &O) {
|
||||
|
||||
// If this is a two-address instruction and we are not accessing the
|
||||
// 0th operand, remove an operand.
|
||||
if (I->second.isTwoAddress && OpNo != 0)
|
||||
if (I->second.isTwoAddress && OpNo != 0) {
|
||||
if (OpNo == 1)
|
||||
throw "Should refer to operand #0 instead of #1 for two-address"
|
||||
" instruction '" + I->first + "'!";
|
||||
--OpNo;
|
||||
}
|
||||
|
||||
O << "; printOperand(MI->getOperand(" << OpNo << "), MVT::"
|
||||
<< getName(I->second.OperandList[OpNo].Ty) << "); O ";
|
||||
|
Loading…
x
Reference in New Issue
Block a user