mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Don't leak operands when putting them into a shift.
llvm-svn: 135169
This commit is contained in:
parent
aebb9cdf68
commit
8833af7c47
@ -1085,7 +1085,7 @@ int ARMAsmParser::TryParseShiftRegister(
|
||||
// The source register for the shift has already been added to the
|
||||
// operand list, so we need to pop it off and combine it into the shifted
|
||||
// register operand instead.
|
||||
ARMOperand *PrevOp = (ARMOperand*)Operands.pop_back_val();
|
||||
OwningPtr<ARMOperand> PrevOp((ARMOperand*)Operands.pop_back_val());
|
||||
if (!PrevOp->isReg())
|
||||
return Error(PrevOp->getStartLoc(), "shift must be of a register");
|
||||
int SrcReg = PrevOp->getReg();
|
||||
|
Loading…
Reference in New Issue
Block a user