[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelSimple.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Dec 16 16:47:06 PST 2004
Changes in directory llvm/lib/Target/X86:
X86ISelSimple.cpp updated: 1.302 -> 1.303
---
Log message:
Change the sentinal
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Target/X86/X86ISelSimple.cpp
diff -u llvm/lib/Target/X86/X86ISelSimple.cpp:1.302 llvm/lib/Target/X86/X86ISelSimple.cpp:1.303
--- llvm/lib/Target/X86/X86ISelSimple.cpp:1.302 Thu Dec 16 18:07:46 2004
+++ llvm/lib/Target/X86/X86ISelSimple.cpp Thu Dec 16 18:46:51 2004
@@ -97,7 +97,7 @@
///
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 @@
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);
}
More information about the llvm-commits
mailing list