GBE: Fix build error.

Submitted by Song, Ruiling on Aug. 5, 2015, 7:16 a.m.

Details

Message ID 1438759006-1139-1-git-send-email-ruiling.song@intel.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Song, Ruiling Aug. 5, 2015, 7:16 a.m.
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
---
 backend/src/backend/program.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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.
       }

Comments

LGTM, pushed, thanks.

> -----Original Message-----

> From: Beignet [mailto:beignet-bounces@lists.freedesktop.org] On Behalf Of

> Ruiling Song

> Sent: Wednesday, August 5, 2015 15:17

> To: beignet@lists.freedesktop.org

> Cc: Song, Ruiling

> Subject: [Beignet] [PATCH] GBE: Fix build error.

> 

> Signed-off-by: Ruiling Song <ruiling.song@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

> 

> _______________________________________________

> Beignet mailing list

> Beignet@lists.freedesktop.org

> http://lists.freedesktop.org/mailman/listinfo/beignet