diff options
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-core/ispc/ispc/8b5d0f26916e776bc3664e6a4dc68eff3a198d7a.patch')
-rw-r--r-- | dynamic-layers/clang-layer/recipes-core/ispc/ispc/8b5d0f26916e776bc3664e6a4dc68eff3a198d7a.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/8b5d0f26916e776bc3664e6a4dc68eff3a198d7a.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/8b5d0f26916e776bc3664e6a4dc68eff3a198d7a.patch new file mode 100644 index 00000000..1b87af4c --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/8b5d0f26916e776bc3664e6a4dc68eff3a198d7a.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From 8b5d0f26916e776bc3664e6a4dc68eff3a198d7a Mon Sep 17 00:00:00 2001 | ||
2 | From: Dmitry Babokin <dmitry.y.babokin@intel.com> | ||
3 | Date: Wed, 16 Jun 2021 20:38:44 -0700 | ||
4 | Subject: [PATCH] Do not use depricated file open flags | ||
5 | |||
6 | Upstream-Status: Backport [https://github.com/ispc/ispc/commit/8b5d0f26916e776bc3664e6a4dc68eff3a198d7a] | ||
7 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
8 | --- | ||
9 | src/module.cpp | 2 +- | ||
10 | src/opt.cpp | 2 +- | ||
11 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
12 | |||
13 | diff --git a/src/module.cpp b/src/module.cpp | ||
14 | index 1e68d30c4..352bcd09e 100644 | ||
15 | --- a/src/module.cpp | ||
16 | +++ b/src/module.cpp | ||
17 | @@ -1314,7 +1314,7 @@ bool Module::writeObjectFileOrAssembly(llvm::TargetMachine *targetMachine, llvm: | ||
18 | llvm::CodeGenFileType fileType = (outputType == Object) ? llvm::CGFT_ObjectFile : llvm::CGFT_AssemblyFile; | ||
19 | bool binary = (fileType == llvm::CGFT_ObjectFile); | ||
20 | |||
21 | - llvm::sys::fs::OpenFlags flags = binary ? llvm::sys::fs::F_None : llvm::sys::fs::F_Text; | ||
22 | + llvm::sys::fs::OpenFlags flags = binary ? llvm::sys::fs::OF_None : llvm::sys::fs::OF_Text; | ||
23 | |||
24 | std::error_code error; | ||
25 | |||
26 | diff --git a/src/opt.cpp b/src/opt.cpp | ||
27 | index ae1a11d3d..de1b27e1e 100644 | ||
28 | --- a/src/opt.cpp | ||
29 | +++ b/src/opt.cpp | ||
30 | @@ -4687,7 +4687,7 @@ void DebugPassFile::run(llvm::Module &module, bool init) { | ||
31 | std::error_code EC; | ||
32 | char fname[100]; | ||
33 | snprintf(fname, sizeof(fname), "%s_%d_%s.ll", init ? "init" : "ir", pnum, sanitize(std::string(pname)).c_str()); | ||
34 | - llvm::raw_fd_ostream OS(fname, EC, llvm::sys::fs::F_None); | ||
35 | + llvm::raw_fd_ostream OS(fname, EC, llvm::sys::fs::OF_None); | ||
36 | Assert(!EC && "IR dump file creation failed!"); | ||
37 | module.print(OS, 0); | ||
38 | } | ||