Skip to content

Commit 81f78d2

Browse files
authored
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 #2376
1 parent 747ef0f commit 81f78d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)