diff --git a/llvm/include/llvm/CodeGen/CallingConvLower.h b/llvm/include/llvm/CodeGen/CallingConvLower.h index ef2f25e750653..cc3a75c897d3d 100644 --- a/llvm/include/llvm/CodeGen/CallingConvLower.h +++ b/llvm/include/llvm/CodeGen/CallingConvLower.h @@ -447,11 +447,11 @@ class CCState { /// Version of AllocateStack with extra register to be shadowed. LLVM_ATTRIBUTE_DEPRECATED(unsigned AllocateStack(unsigned Size, - unsigned Align, + unsigned Alignment, unsigned ShadowReg), "Use the version that takes Align instead.") { MarkAllocated(ShadowReg); - return AllocateStack(Size, Align); + return AllocateStack(Size, Align(Alignment)); } /// Version of AllocateStack with list of extra registers to be shadowed.