We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0591c2d + 5cd1aa0 commit 728f906Copy full SHA for 728f906
llvm/include/llvm/Passes/PassPlugin.h
@@ -114,6 +114,11 @@ class PassPlugin {
114
};
115
}
116
117
+// The function returns a struct with default initializers.
118
+#ifdef __clang__
119
+#pragma clang diagnostic push
120
+#pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
121
+#endif
122
/// The public entry point for a pass plugin.
123
///
124
/// When a plugin is loaded by the driver, it will call this entry point to
@@ -130,5 +135,8 @@ class PassPlugin {
130
135
/// ```
131
136
extern "C" ::llvm::PassPluginLibraryInfo LLVM_ATTRIBUTE_WEAK
132
137
llvmGetPassPluginInfo();
138
139
+#pragma clang diagnostic pop
140
133
141
134
142
#endif /* LLVM_PASSES_PASSPLUGIN_H */
0 commit comments