Skip to content

Commit b78b2ef

Browse files
committed
Fix minor bug
Signed-off-by: Arvind Sudarsanam <[email protected]>
1 parent e38ded0 commit b78b2ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,14 +367,14 @@ static void getSPIRVTransOpts(const ArgList &Args,
367367
static Expected<StringRef> runLLVMToSPIRVTranslation(StringRef File,
368368
const ArgList &Args) {
369369
llvm::TimeTraceScope TimeScope("LLVMToSPIRVTranslation");
370-
StringRef LLVMSPIRVPath = Args.getLastArgValue(llvm_spirv_path_EQ);
370+
StringRef LLVMSPIRVPath = Args.getLastArgValue(OPT_llvm_spirv_path_EQ);
371371
Expected<std::string> LLVMToSPIRVProg =
372372
findProgram(Args, "llvm-spirv", {LLVMSPIRVPath});
373373
if (!LLVMToSPIRVProg)
374374
return LLVMToSPIRVProg.takeError();
375375

376376
SmallVector<StringRef, 8> CmdArgs;
377-
CmdArgs.push_back(*LLVMToSPIRVPath);
377+
CmdArgs.push_back(*LLVMToSPIRVProg);
378378
const llvm::Triple Triple(Args.getLastArgValue(OPT_triple));
379379
getSPIRVTransOpts(Args, CmdArgs, Triple);
380380
StringRef LLVMToSPIRVOptions;

0 commit comments

Comments
 (0)