summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-06-01 21:12:31 +0000
committerChad Rosier <mcrosier@apple.com>2012-06-01 21:12:31 +0000
commitf3193240823c615570ae2ccbe21ab2d778a86ee9 (patch)
treefdb26f2667c3851753fe171162c144c6bf8682b6
parent92a0083944c2ac5ab5b7b54d88113f41862eaaef (diff)
downloadbcm5719-llvm-f3193240823c615570ae2ccbe21ab2d778a86ee9.tar.gz
bcm5719-llvm-f3193240823c615570ae2ccbe21ab2d778a86ee9.zip
[arm-fast-isel] Fix handling of the frameaddress intrinsic. If depth is 0
then DestReg is undefined. llvm-svn: 157840
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp2
1 files changed, 1 insertions, 1 deletions
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:
OpenPOWER on IntegriCloud