forked from OSchip/llvm-project
[X86] Don't round trip a unique_ptr through a raw pointer for assignment.
No functional change. llvm-svn: 287888
This commit is contained in:
parent
5e7c591ac9
commit
fc54e35d94
|
@ -1940,7 +1940,7 @@ bool X86AsmParser::ParseZ(std::unique_ptr<X86Operand> &Z,
|
|||
return Error(getLexer().getLoc(), "Expected } at this point");
|
||||
Parser.Lex(); // Eat '}'
|
||||
// Assign Z with the {z} mark opernad
|
||||
Z.reset(X86Operand::CreateToken("{z}", StartLoc).release());
|
||||
Z = X86Operand::CreateToken("{z}", StartLoc);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue