Fix a build error when compiling with clang

Check __clang__ before __GNUC__ as clang defines both.

Change-Id: I9963f8e0665efb4cb08bd3886fb38fee42dd9861


[ROCm/ROCR-Runtime commit: 19e1fb3a4e]
此提交包含在:
Laurent Morichetti committed 2020-01-15 18:52:53 -08:00
1 父節點 b53a8a6377
當前提交 74cd6e1197
1 file changed
+1 -3
+1 -3
查看文件
@@ -62,9 +62,7 @@
using namespace amd::hsa;
using namespace amd::hsa::common;
#ifdef __GNUC__
#define NONOPTIMIZE __attribute__((noinline, optimize(0)))
#elif defined __clang__
#if defined __clang__
#define NONOPTIMIZE __attribute__((noinline, optnone))
#else
#define NONOPTIMIZE __attribute__((noinline, optimize(0)))