Skip to content

Commit

Permalink
[Backport to 18] Include LLVMSPIRVLib.h in SPIRVError.cpp (Khrono…
Browse files Browse the repository at this point in the history
…sGroup#2377) (KhronosGroup#2380)

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#2376

(cherry picked from commit 81f78d2)
  • Loading branch information
svenvh authored Feb 26, 2024
1 parent ffdb454 commit e6c001c
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 e6c001c

Please sign in to comment.