[AArch64] Fix invalid use of references to BuildMI.
authorJames Molloy <james.molloy@arm.com>
Thu, 16 Apr 2015 11:37:40 +0000 (11:37 +0000)
committerJames Molloy <james.molloy@arm.com>
Thu, 16 Apr 2015 11:37:40 +0000 (11:37 +0000)
commit5717e28019e7348a04f63dcf965121171da15c62
treea5985c3038b934a238bc74011dd3df541cbee285
parent5ade5fcee498b561b944f81987e8fa82ab0832bd
[AArch64] Fix invalid use of references to BuildMI.

This was found in GCC PR65773 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65773).

We shouldn't be taking a reference to the temporary that BuildMI returns, we must copy it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235088 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstrInfo.cpp