Fix a build error when compiling with clang

Check __clang__ before __GNUC__ as clang defines both.

Change-Id: I9963f8e0665efb4cb08bd3886fb38fee42dd9861


[ROCm/ROCR-Runtime commit: 19e1fb3a4e]
This commit is contained in:
Laurent Morichetti
2020-01-15 18:51:54 -08:00
rodzic b53a8a6377
commit 74cd6e1197
@@ -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)))