[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:
Benjamin Kramer 2016-11-24 15:17:39 +00:00
parent 5e7c591ac9
commit fc54e35d94
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}