[llvm] [llvm][llvm-c] LLVMModuleFlagEntry should be of struct pointer type (PR #99800)

Meow King via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 20 23:39:57 PDT 2024


https://github.com/Ziqi-Yang created https://github.com/llvm/llvm-project/pull/99800

like other type definitions

>From ea4247cbf2ff8469d9852d24f1dc993de59d95fd Mon Sep 17 00:00:00 2001
From: Meow King <mr.ziqiyang at gmail.com>
Date: Sun, 21 Jul 2024 14:38:04 +0800
Subject: [PATCH] [llvm][llvm-c] LLVMModuleFlagEntry should be of struct
 pointer type

---
 llvm/include/llvm-c/Types.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/include/llvm-c/Types.h b/llvm/include/llvm-c/Types.h
index 4681500ef9da3..e4e36050dff7a 100644
--- a/llvm/include/llvm-c/Types.h
+++ b/llvm/include/llvm-c/Types.h
@@ -157,7 +157,7 @@ typedef struct LLVMComdat *LLVMComdatRef;
 /**
  * @see llvm::Module::ModuleFlagEntry
  */
-typedef struct LLVMOpaqueModuleFlagEntry LLVMModuleFlagEntry;
+typedef struct LLVMOpaqueModuleFlagEntry *LLVMModuleFlagEntry;
 
 /**
  * @see llvm::JITEventListener



More information about the llvm-commits mailing list