mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 17:31:50 +00:00
[X86] Don't round trip a unique_ptr through a raw pointer for assignment.
No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287888 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
911bcb3c53
commit
452417f3fd
@ -1940,7 +1940,7 @@ bool X86AsmParser::ParseZ(std::unique_ptr<X86Operand> &Z,
|
|||||||
return Error(getLexer().getLoc(), "Expected } at this point");
|
return Error(getLexer().getLoc(), "Expected } at this point");
|
||||||
Parser.Lex(); // Eat '}'
|
Parser.Lex(); // Eat '}'
|
||||||
// Assign Z with the {z} mark opernad
|
// Assign Z with the {z} mark opernad
|
||||||
Z.reset(X86Operand::CreateToken("{z}", StartLoc).release());
|
Z = X86Operand::CreateToken("{z}", StartLoc);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user