File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
IGC/WrapperLLVM/include/llvmWrapper/Transforms Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,9 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
31
32
32
namespace IGCLLVM
33
33
{
34
- #if LLVM_VERSION_MAJOR == 4
34
+ #if LLVM_VERSION_MAJOR < 4
35
+ #error Not supported llvm version.
36
+ #elif LLVM_VERSION_MAJOR == 4
35
37
inline static llvm::Pass* createLoopUnrollPass (
36
38
int OptLevel = 2 , int Threshold = -1 , int Count = -1 ,
37
39
int AllowPartial = -1 , int Runtime = -1 ,
@@ -59,7 +61,7 @@ namespace IGCLLVM
59
61
}
60
62
#elif LLVM_VERSION_MAJOR >= 11
61
63
// DO NOT assume same function signature for all incoming llvm versions! Double check to upgrade!
62
- assert (! " Not supported llvm version! " );
64
+ # error Not supported llvm version.
63
65
#endif
64
66
}
65
67
#endif
You can’t perform that action at this time.
0 commit comments