File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
mlir/lib/Target/LLVMIR/Transforms Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1212#include " mlir/Target/LLVMIR/Import.h"
1313
1414#include " llvm/MC/TargetRegistry.h"
15- #include " llvm/Support/Debug.h"
1615#include " llvm/Support/DebugLog.h"
1716#include " llvm/Support/TargetSelect.h"
1817#include " llvm/Target/TargetMachine.h"
@@ -25,13 +24,14 @@ namespace mlir {
2524namespace LLVM {
2625namespace detail {
2726void initializeBackendsOnce () {
28- static llvm::once_flag initializeOnceFlag;
29- llvm::call_once (initializeOnceFlag, []() {
27+ static const auto initOnce = [] {
3028 // Ensure that the targets, that LLVM has been configured to support,
3129 // are loaded into the TargetRegistry.
3230 llvm::InitializeAllTargets ();
3331 llvm::InitializeAllTargetMCs ();
34- });
32+ return true ;
33+ }();
34+ (void )initOnce; // Dummy usage.
3535}
3636
3737FailureOr<std::unique_ptr<llvm::TargetMachine>>
You can’t perform that action at this time.
0 commit comments