[llvm] [llvm][IR] Deprecate IRBuilderBase::getInt8PtrTy (PR #74096)

via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 1 08:17:05 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-ir

Author: Youngsuk Kim (JOE1994)

<details>
<summary>Changes</summary>



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


1 Files Affected:

- (modified) llvm/include/llvm/IR/IRBuilder.h (+1) 


``````````diff
diff --git a/llvm/include/llvm/IR/IRBuilder.h b/llvm/include/llvm/IR/IRBuilder.h
index 2cd9a665e9e5d05..f68dfc37ce9f01c 100644
--- a/llvm/include/llvm/IR/IRBuilder.h
+++ b/llvm/include/llvm/IR/IRBuilder.h
@@ -565,6 +565,7 @@ class IRBuilderBase {
   }
 
   /// Fetch the type representing a pointer to an 8-bit integer value.
+  [[deprecated("Pointers no longer have element types. Use getPtrTy instead.")]]
   PointerType *getInt8PtrTy(unsigned AddrSpace = 0) {
     return getPtrTy(AddrSpace);
   }

``````````

</details>


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


More information about the llvm-commits mailing list