[Beignet] [PATCH] GBE: Fix build error.
Ruiling Song
ruiling.song at intel.com
Wed Aug 5 00:16:46 PDT 2015
Signed-off-by: Ruiling Song <ruiling.song at intel.com>
---
backend/src/backend/program.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/src/backend/program.cpp b/backend/src/backend/program.cpp
index a9b5ff5..9caf1ac 100644
--- a/backend/src/backend/program.cpp
+++ b/backend/src/backend/program.cpp
@@ -827,7 +827,7 @@ namespace gbe {
std::error_code err;
llvm::raw_fd_ostream ostream (dumpLLVMFileName.c_str(),
err, llvm::sys::fs::F_RW);
- if (!err.bool()) {
+ if (!err) {
out_module->print(ostream, 0);
} //Otherwise, you'll have to make do without the dump.
}
--
2.3.1
More information about the Beignet
mailing list