Skip to content

Commit df5d6d5

Browse files
svenvhdwoodwor-intel
authored andcommitted
Disable opaque pointers when converting SPIR-V to LLVM
Temporarily disable opaque pointers when running `llvm-spirv -r`, after LLVM upstream commit 41d5033 ("[IR] Enable opaque pointers by default", 2022-06-02). Original commit: KhronosGroup/SPIRV-LLVM-Translator@1e0b516
1 parent 5890b66 commit df5d6d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm-spirv/tools/llvm-spirv/llvm-spirv.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ static bool isFileEmpty(const std::string &FileName) {
344344

345345
static int convertSPIRVToLLVM(const SPIRV::TranslatorOpts &Opts) {
346346
LLVMContext Context;
347+
Context.setOpaquePointers(false);
348+
347349
std::ifstream IFS(InputFile, std::ios::binary);
348350
Module *M;
349351
std::string Err;

0 commit comments

Comments
 (0)