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

via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 1 08:18:47 PST 2023


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff d222fa4521531cc4ac14b8e157d231c108c003be 9e1f2d7f378e15c3edcdbc3d2a4fe01701d97ed0 -- llvm/include/llvm/IR/IRBuilder.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/IR/IRBuilder.h b/llvm/include/llvm/IR/IRBuilder.h
index f68dfc37ce..6a1fecff82 100644
--- a/llvm/include/llvm/IR/IRBuilder.h
+++ b/llvm/include/llvm/IR/IRBuilder.h
@@ -565,8 +565,9 @@ public:
   }
 
   /// 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) {
+  [[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