Fix a build error when compiling with clang

Check __clang__ before __GNUC__ as clang defines both.

Change-Id: I9963f8e0665efb4cb08bd3886fb38fee42dd9861


[ROCm/ROCR-Runtime commit: 19e1fb3a4e]
Tá an tiomantas seo le fáil i:
Laurent Morichetti tiomanta 2020-01-15 18:52:53 -08:00
1 tuismitheoir b53a8a6377
tiomantas 74cd6e1197
1 comhad athraithe
+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)))