intel / intel-graphics-compiler

Other
597 stars 155 forks source link

Compile error with GCC 11.1 on current master branch #216

Closed foutrelis closed 2 years ago

foutrelis commented 2 years ago

The error seems self-explanatory (appears to have been introduced by https://github.com/intel/intel-graphics-compiler/commit/958e92b704f5f2351bfd5d78b1c1eea8f07a88e2):

IGC/VectorCompiler/lib/GenXCodeGen/GenXDebugInfo.cpp:708:25:
error: ordered comparison of pointer with integer zero (‘void*’ and ‘int’)
  708 |   if (GenDbgInfoDataPtr <= 0) {
      |       ~~~~~~~~~~~~~~~~~~^~~~
foutrelis commented 2 years ago

Seems fixed by 99edbf49d7c97febca9fd354415a9a93c92421d3.