Skip to content

Commit e59ed66

Browse files
svenvhsys-ce-bb
authored andcommitted
Include LLVMSPIRVLib.h in SPIRVError.cpp (#2377)
The prototype for `getErrorMessage()` is declared in `LLVMSPIRVLib.h`, but `SPIRVError.cpp` defining that function did not include `LLVMSPIRVLib.h`. This can be problematic for builds that use `-fvisibility=hidden`. Fixes KhronosGroup/SPIRV-LLVM-Translator#2376 Original commit: KhronosGroup/SPIRV-LLVM-Translator@81f78d24db36622
1 parent f667450 commit e59ed66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm-spirv/lib/SPIRV/libSPIRV/SPIRVError.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
//
3737
//===----------------------------------------------------------------------===//
3838

39+
#include "LLVMSPIRVLib.h"
40+
3941
#include "SPIRVError.h"
4042
#include <string>
4143

0 commit comments

Comments
 (0)