Skip to content

Commit 908f74a

Browse files
authored
[llvm] re-order LLVM_ABI and extern on NoKernelInfoEndLTO decl (#144601)
## Overview Fix compilation error introduced by #143615. Build failure logs available [here](https://lab.llvm.org/buildbot/#/builders/195/builds/10573) ## Background On `extern` variable declarations, `LLVM_ABI` must appear before `extern` because `LLVM_ABI` currently resolves to `[[gnu::visibility("default")]]` when building with gcc.
1 parent c677a11 commit 908f74a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Target/TargetMachine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <string>
3030
#include <utility>
3131

32-
extern LLVM_ABI llvm::cl::opt<bool> NoKernelInfoEndLTO;
32+
LLVM_ABI extern llvm::cl::opt<bool> NoKernelInfoEndLTO;
3333

3434
namespace llvm {
3535

0 commit comments

Comments
 (0)