Skip to content

Commit

Permalink
Include LLVMSPIRVLib.h in SPIRVError.cpp (#2377)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
svenvh authored and sys-ce-bb committed Feb 29, 2024
1 parent f667450 commit e59ed66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm-spirv/lib/SPIRV/libSPIRV/SPIRVError.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
//
//===----------------------------------------------------------------------===//

#include "LLVMSPIRVLib.h"

#include "SPIRVError.h"
#include <string>

Expand Down

0 comments on commit e59ed66

Please sign in to comment.