Missing .h and explicit braces needed
Closed this issue · 1 comments
While compiling LLVM, I got these errors:
[12:06:51][Step 1/2] Generating Mangler.cpp dependencies ...
[12:06:51][Step 1/2] ../../../Mangler/Mangler.cpp:17:27: fatal error: SPIRVInternal.h: No such file or directory
[12:06:51][Step 1/2] #include "SPIRVInternal.h"
[12:06:51][Step 1/2] ^
[12:06:51][Step 1/2] compilation terminated.
Also:
[12:08:15][Step 1/2] Compiling SPIRVUtil.cpp ...
[12:08:18][Step 1/2] ../../../SPIRVUtil.cpp: In function 'std::__1::string SPIRV::getSPIRVImageSampledTypeName(SPIRV::SPIRVType*)':
[12:08:18][Step 1/2] ../../../SPIRVUtil.cpp:1250:8: error: suggest explicit braces to avoid ambiguous 'else' [-Werror=parentheses]
[12:08:18][Step 1/2] if (Ty->getIntegerBitWidth() == 32)
[12:08:18][Step 1/2] ^
[12:08:20][Step 1/2] cc1plus: all warnings being treated as errors
Created pull request #159