diff --git a/libclc/utils/prepare-builtins.cpp b/libclc/utils/prepare-builtins.cpp index 570ed43da973..5cd32cdb2482 100644 --- a/libclc/utils/prepare-builtins.cpp +++ b/libclc/utils/prepare-builtins.cpp @@ -84,8 +84,13 @@ int main(int argc, char **argv) { } std::error_code EC; +#if HAVE_LLVM >= 0x0600 std::unique_ptr Out( new ToolOutputFile(OutputFilename, EC, sys::fs::F_None)); +#else + std::unique_ptr Out( + new tool_output_file(OutputFilename, EC, sys::fs::F_None)); +#endif if (EC) { errs() << EC.message() << '\n'; exit(1);