diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp index 3e0761fb85b1..e49ee1792373 100644 --- a/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp +++ b/llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp @@ -1470,7 +1470,7 @@ public: // L0: // .cfi_def_cfa_offset 80 // - StackSize = std::abs(Inst.getOffset()) / StackDivide; + StackSize = Inst.getOffset() / StackDivide; ++NumDefCFAOffsets; break; }