[llvm] 49dd8e7 - [Alignment] Fix deprecation message

Guillaume Chatelet via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 01:05:28 PDT 2020


Author: Guillaume Chatelet
Date: 2020-06-09T08:05:13Z
New Revision: 49dd8e79913cc10676902fd2033a090758cf9b90

URL: https://github.com/llvm/llvm-project/commit/49dd8e79913cc10676902fd2033a090758cf9b90
DIFF: https://github.com/llvm/llvm-project/commit/49dd8e79913cc10676902fd2033a090758cf9b90.diff

LOG: [Alignment] Fix deprecation message

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/CallingConvLower.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/CallingConvLower.h b/llvm/include/llvm/CodeGen/CallingConvLower.h
index ef2f25e75065..cc3a75c897d3 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.


        


More information about the llvm-commits mailing list