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 #2376
  • Loading branch information
svenvh authored Feb 23, 2024
1 parent 747ef0f commit 81f78d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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 81f78d2

Please sign in to comment.