mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Change the sentinal
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19007 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
11cf7aa775
commit
8cdbc35216
@ -97,7 +97,7 @@ namespace {
|
|||||||
///
|
///
|
||||||
bool runOnFunction(Function &Fn) {
|
bool runOnFunction(Function &Fn) {
|
||||||
// Lazily create a stack slot for the return address if needed.
|
// 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
|
// First pass over the function, lower any unknown intrinsic functions
|
||||||
// with the IntrinsicLowering class.
|
// with the IntrinsicLowering class.
|
||||||
@ -1764,7 +1764,7 @@ void X86ISel::visitIntrinsicCall(Intrinsic::ID ID, CallInst &CI) {
|
|||||||
case Intrinsic::frameaddress:
|
case Intrinsic::frameaddress:
|
||||||
TmpReg1 = getReg(CI);
|
TmpReg1 = getReg(CI);
|
||||||
if (cast<Constant>(CI.getOperand(1))->isNullValue()) {
|
if (cast<Constant>(CI.getOperand(1))->isNullValue()) {
|
||||||
if (ReturnAddressIndex == -1) {
|
if (ReturnAddressIndex == 0) {
|
||||||
// Set up a frame object for the return address.
|
// Set up a frame object for the return address.
|
||||||
ReturnAddressIndex = F->getFrameInfo()->CreateFixedObject(4, -4);
|
ReturnAddressIndex = F->getFrameInfo()->CreateFixedObject(4, -4);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user