[llvm-branch-commits] [clang] [llvm] [IRBuilder] Add getByteTy and use it in CreatePtrAdd (PR #106539)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Oct 6 20:58:07 PDT 2026
github-actions[bot] wrote:
<!--LLVM IDS CHECK COMMENT-->
:warning: LLVM ABI annotation checker, ids-check found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
Build idt from compnerd/ids, then for each changed header:
idt -p build/ --main-file <matching-source.cpp> \
--apply-fixits --inplace <header>
``````````
</details>
<details>
<summary>
View the diff from ids-check here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/IR/Constants.h b/llvm/include/llvm/IR/Constants.h
index 510bcf2ad..94760ccec 100644
--- a/llvm/include/llvm/IR/Constants.h
+++ b/llvm/include/llvm/IR/Constants.h
@@ -1515,7 +1515,7 @@ public:
/// Create a getelementptr iN, ptr, offset constant expression,
/// where iN is a byte-sized integer type.
- static Constant *
+ LLVM_ABI static Constant *
getPtrAdd(const DataLayout &DL, Constant *Ptr, Constant *Offset,
GEPNoWrapFlags NW = GEPNoWrapFlags::none(),
std::optional<ConstantRange> InRange = std::nullopt,
``````````
</details>
https://github.com/llvm/llvm-project/pull/106539
More information about the llvm-branch-commits
mailing list