[llvm] [NFC] Remove deprecated Argument::getParamAlignment() declaration (PR #169911)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 28 04:41:42 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-ir

Author: Marco Elver (melver)

<details>
<summary>Changes</summary>

The implementation of Argument::getParamAlignment() was removed in commit b55f83d013eff244f7cf6bfcd06f06f7c894ff28, but the declaration in Argument.h was left behind. Remove it.

NFC.

---
Full diff: https://github.com/llvm/llvm-project/pull/169911.diff


1 Files Affected:

- (modified) llvm/include/llvm/IR/Argument.h (-6) 


``````````diff
diff --git a/llvm/include/llvm/IR/Argument.h b/llvm/include/llvm/IR/Argument.h
index b9a73b3eb5fc2..6ffc0f8fd5155 100644
--- a/llvm/include/llvm/IR/Argument.h
+++ b/llvm/include/llvm/IR/Argument.h
@@ -108,12 +108,6 @@ class Argument final : public Value {
   /// returned. Otherwise, nullptr.
   LLVM_ABI Type *getPointeeInMemoryValueType() const;
 
-  /// If this is a byval or inalloca argument, return its alignment.
-  /// FIXME: Remove this function once transition to Align is over.
-  /// Use getParamAlign() instead.
-  LLVM_ABI LLVM_DEPRECATED("Use getParamAlign() instead",
-                           "getParamAlign") uint64_t getParamAlignment() const;
-
   /// If this is a byval or inalloca argument, return its alignment.
   LLVM_ABI MaybeAlign getParamAlign() const;
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/169911


More information about the llvm-commits mailing list