[clang] [Clang] Replace Intrinsic::getDeclaration with getOrInsertDeclaration (PR #111990)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 11 05:45:46 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-codegen
Author: Rahul Joshi (jurahul)
<details>
<summary>Changes</summary>
Fix build failure from the rename change. Looks like one additional reference sneaked in between pre-commit checks and the commit itself.
---
Full diff: https://github.com/llvm/llvm-project/pull/111990.diff
1 Files Affected:
- (modified) clang/lib/CodeGen/CGBuiltin.cpp (+1-1)
``````````diff
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index 059c75fae284dd..465afd04740d89 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -18882,7 +18882,7 @@ case Builtin::BI__builtin_hlsl_elementwise_isinf: {
// for the DirectX intrinsic and the demangled builtin name
switch (CGM.getTarget().getTriple().getArch()) {
case llvm::Triple::dxil:
- return EmitRuntimeCall(Intrinsic::getDeclaration(
+ return EmitRuntimeCall(Intrinsic::getOrInsertDeclaration(
&CGM.getModule(), Intrinsic::dx_wave_getlaneindex));
case llvm::Triple::spirv:
return EmitRuntimeCall(CGM.CreateRuntimeFunction(
``````````
</details>
https://github.com/llvm/llvm-project/pull/111990
More information about the cfe-commits
mailing list