From f3193240823c615570ae2ccbe21ab2d778a86ee9 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Fri, 1 Jun 2012 21:12:31 +0000 Subject: [arm-fast-isel] Fix handling of the frameaddress intrinsic. If depth is 0 then DestReg is undefined. llvm-svn: 157840 --- llvm/lib/Target/ARM/ARMFastISel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib') diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp index 2d2d401dceb..b353992b3ba 100644 --- a/llvm/lib/Target/ARM/ARMFastISel.cpp +++ b/llvm/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: -- cgit v1.2.3