[Alignment] Fix deprecation message

This commit is contained in:
Guillaume Chatelet 2020-06-09 08:05:13 +00:00
parent d8f651d3e8
commit 49dd8e7991
1 changed files with 2 additions and 2 deletions

View File

@ -447,11 +447,11 @@ public:
/// 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.