diff --git a/opencl_clang.cpp b/opencl_clang.cpp index 445031e..7f7287e 100644 --- a/opencl_clang.cpp +++ b/opencl_clang.cpp @@ -244,7 +244,8 @@ Compile(const char *pszProgramSource, const char **pInputHeaders, optionsParser.args(), *Diags); // Configure our handling of diagnostics. - ProcessWarningOptions(*Diags, compiler->getDiagnosticOpts()); + ProcessWarningOptions(*Diags, compiler->getDiagnosticOpts(), + compiler->getFileManager().getVirtualFileSystem()); // Map memory buffers to a virtual file system MemFS->addFile(