[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:
Benjamin Kramer 2016-11-24 15:17:39 +00:00
parent 911bcb3c53
commit 452417f3fd

View File

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