[Alignment] Fix deprecation message
authorGuillaume Chatelet <gchatelet@google.com>
Tue, 9 Jun 2020 08:05:13 +0000 (08:05 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Tue, 9 Jun 2020 08:05:13 +0000 (08:05 +0000)
llvm/include/llvm/CodeGen/CallingConvLower.h

index ef2f25e..cc3a75c 100644 (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.