Skip to content

Commit

Permalink
[Alignment] Fix deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
gchatelet committed Jun 9, 2020
1 parent d8f651d commit 49dd8e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/include/llvm/CodeGen/CallingConvLower.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 49dd8e7

Please sign in to comment.