mirror of
https://github.com/RPCSX/llvm.git
synced 2025-05-13 10:56:01 +00:00
Revert "[Mips] Fix use after free."
Fixes use after free but breaks tests. This reverts commit r268901. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268902 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
04c6ebbe71
commit
bc38c49428
@ -4693,7 +4693,8 @@ MipsAsmParser::parseRegisterPair(OperandVector &Operands) {
|
||||
SMLoc E = Parser.getTok().getLoc();
|
||||
MipsOperand &Op = static_cast<MipsOperand &>(*Operands.back());
|
||||
|
||||
Operands.back() = MipsOperand::CreateRegPair(Op, S, E, *this);
|
||||
Operands.pop_back();
|
||||
Operands.push_back(MipsOperand::CreateRegPair(Op, S, E, *this));
|
||||
return MatchOperand_Success;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user