aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-12-17 00:46:51 +0000
committerChris Lattner <sabre@nondot.org>2004-12-17 00:46:51 +0000
commit8cdbc352161d6d9bdd71cdc3e7dbe7226b1aa243 (patch)
tree6c121dc1022b2edeb9ef9df92f5ada8d600fc5a8
parent11cf7aa775dece12fbf29c57c1e97eb0c5eb06ad (diff)
Change the sentinal
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19007 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86ISelSimple.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp
index 2d77f7e1fc..274dfd805d 100644
--- a/lib/Target/X86/X86ISelSimple.cpp
+++ b/lib/Target/X86/X86ISelSimple.cpp
@@ -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);
}