diff options
-rw-r--r-- | src/amd/common/ac_llvm_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/common/ac_llvm_util.c b/src/amd/common/ac_llvm_util.c index deca5b98772..64942670b6c 100644 --- a/src/amd/common/ac_llvm_util.c +++ b/src/amd/common/ac_llvm_util.c @@ -63,7 +63,7 @@ static void ac_init_llvm_target() "mesa", "-simplifycfg-sink-common=false", "-global-isel-abort=2", -#if HAVE_LLVM >= 0x1000 +#if LLVM_VERSION_MAJOR >= 10 /* Atomic optimizations require LLVM 10.0 for gfx10 support. */ "-amdgpu-atomic-optimizations=true", #endif |