prepare_builtins: Fix compile breakage with older LLVM

Fixes r314050

reviewer: Tom Stellard

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 314111
This commit is contained in:
Jan Vesely 2017-09-25 16:04:37 +00:00
parent 22396c2f47
commit 760052047b
1 changed files with 5 additions and 0 deletions

View File

@ -84,8 +84,13 @@ int main(int argc, char **argv) {
}
std::error_code EC;
#if HAVE_LLVM >= 0x0600
std::unique_ptr<ToolOutputFile> Out(
new ToolOutputFile(OutputFilename, EC, sys::fs::F_None));
#else
std::unique_ptr<tool_output_file> Out(
new tool_output_file(OutputFilename, EC, sys::fs::F_None));
#endif
if (EC) {
errs() << EC.message() << '\n';
exit(1);