[arm-fast-isel] Fix handling of the frameaddress intrinsic. If depth is 0

then DestReg is undefined.

llvm-svn: 157840
This commit is contained in:
Chad Rosier 2012-06-01 21:12:31 +00:00
parent 92a0083944
commit f319324082
1 changed files with 1 additions and 1 deletions

View File

@ -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: