forked from OSchip/llvm-project
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:
parent
22396c2f47
commit
760052047b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue