1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Change the sentinal

llvm-svn: 19007
This commit is contained in:
Chris Lattner 2004-12-17 00:46:51 +00:00
parent 59d0c02d2b
commit d11ba51208

View File

@ -97,7 +97,7 @@ namespace {
///
bool runOnFunction(Function &Fn) {
// Lazily create a stack slot for the return address if needed.
ReturnAddressIndex = -1;
ReturnAddressIndex = 0;
// First pass over the function, lower any unknown intrinsic functions
// with the IntrinsicLowering class.
@ -1764,7 +1764,7 @@ void X86ISel::visitIntrinsicCall(Intrinsic::ID ID, CallInst &CI) {
case Intrinsic::frameaddress:
TmpReg1 = getReg(CI);
if (cast<Constant>(CI.getOperand(1))->isNullValue()) {
if (ReturnAddressIndex == -1) {
if (ReturnAddressIndex == 0) {
// Set up a frame object for the return address.
ReturnAddressIndex = F->getFrameInfo()->CreateFixedObject(4, -4);
}