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.
1 parent 98ba448 commit ef61053Copy full SHA for ef61053
compiler/Main.cpp
@@ -15,7 +15,6 @@
15
#include <llvm/IR/LegacyPassManager.h>
16
#include <llvm/Transforms/IPO/PassManagerBuilder.h>
17
#include <llvm/Transforms/Scalar.h>
18
-#include <llvm/Transforms/Scalar/LowerAtomic.h>
19
#include <llvm/Transforms/Scalar/Scalarizer.h>
20
21
#if LLVM_VERSION_MAJOR >= 13
@@ -29,6 +28,12 @@ using OptimizationLevel = llvm::PassBuilder::OptimizationLevel;
29
28
#endif
30
31
+#if LLVM_VERSION_MAJOR >= 15
32
+#include <llvm/Transforms/Scalar/LowerAtomicPass.h>
33
+#else
34
+#include <llvm/Transforms/Scalar/LowerAtomic.h>
35
+#endif
36
+
37
#include "Pass.h"
38
39
using namespace llvm;
0 commit comments