Index: src/IceTargetLoweringX8632.cpp |
diff --git a/src/IceTargetLoweringX8632.cpp b/src/IceTargetLoweringX8632.cpp |
index 6178d45d6e6a7a59a3dbde0e6fea7d7e92e1b1de..dd75168d5c2aad780defa36d9b5941c5590c84df 100644 |
--- a/src/IceTargetLoweringX8632.cpp |
+++ b/src/IceTargetLoweringX8632.cpp |
@@ -509,13 +509,13 @@ void TargetX8632::emitVariable(const Variable *Var) const { |
} |
if (Var->getWeight().isInf()) |
llvm_unreachable("Infinite-weight Variable has no register assigned"); |
- const Type Ty = IceType_i32; |
int32_t Offset = Var->getStackOffset(); |
if (!hasFramePointer()) |
Offset += getStackAdjustment(); |
if (Offset) |
Str << Offset; |
- Str << "(%" << getRegName(getFrameOrStackReg(), Ty) << ")"; |
+ const Type FrameSPTy = IceType_i32; |
+ Str << "(%" << getRegName(getFrameOrStackReg(), FrameSPTy) << ")"; |
} |
X8632::Address TargetX8632::stackVarToAsmOperand(const Variable *Var) const { |