From: Chad Rosier Date: Fri, 1 Jun 2012 21:12:31 +0000 (+0000) Subject: [arm-fast-isel] Fix handling of the frameaddress intrinsic. If depth is 0 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bbff4ee92d91de4c7ee6657a1eea95c5ed8105de;p=oota-llvm.git [arm-fast-isel] Fix handling of the frameaddress intrinsic. If depth is 0 then DestReg is undefined. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157840 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index 2d2d401dceb..b353992b3ba 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp @@ -2439,7 +2439,7 @@ bool ARMFastISel::SelectIntrinsicCall(const IntrinsicInst &I) { .addReg(SrcReg).addImm(0)); SrcReg = DestReg; } - UpdateValueMap(&I, DestReg); + UpdateValueMap(&I, SrcReg); return true; } case Intrinsic::memcpy: