mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
MipsAsmParser::ParseRegister(): Be responsible to delete an Operand on a temporary Operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206292 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e3f66afe8
commit
9bf9a794df
@ -1558,6 +1558,8 @@ bool MipsAsmParser::ParseRegister(unsigned &RegNo, SMLoc &StartLoc,
|
||||
RegNo = isGP64() ? Operand.getGPR64Reg() : Operand.getGPR32Reg();
|
||||
}
|
||||
|
||||
delete &Operand;
|
||||
|
||||
return (RegNo == (unsigned)-1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user