| Index: src/IceTargetLoweringX8632.cpp
|
| diff --git a/src/IceTargetLoweringX8632.cpp b/src/IceTargetLoweringX8632.cpp
|
| index 81973d06cd027df3c652d75c789e6d380ff6e352..46a587fe1f139727438baf153e72f350b3945311 100644
|
| --- a/src/IceTargetLoweringX8632.cpp
|
| +++ b/src/IceTargetLoweringX8632.cpp
|
| @@ -390,7 +390,9 @@ void TargetX8632::emitVariable(const Variable *Var, const Cfg *Func) const {
|
| }
|
| Str << InstX8632::getWidthString(Var->getType());
|
| Str << " [" << getRegName(getFrameOrStackReg(), IceType_i32);
|
| - int32_t Offset = Var->getStackOffset() + getStackAdjustment();
|
| + int32_t Offset = Var->getStackOffset();
|
| + if (!hasFramePointer())
|
| + Offset += getStackAdjustment();
|
| if (Offset) {
|
| if (Offset > 0)
|
| Str << "+";
|
|
|