[Beignet] [PATCH 3/3] fix build error log not output issue.

xionghu.luo at intel.com xionghu.luo at intel.com
Thu Mar 2 16:08:01 UTC 2017


From: Luo Xionghu <xionghu.luo at intel.com>

Signed-off-by: Luo Xionghu <xionghu.luo 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 09c79d8..5f18dd3 100644
--- a/backend/src/backend/program.cpp
+++ b/backend/src/backend/program.cpp
@@ -1114,7 +1114,7 @@ EXTEND_QUOTE:
                                     stringSize, err, errSize, optLevel, options);
       if (err != NULL)
         *errSize += clangErrSize;
-      if (OCL_OUTPUT_BUILD_LOG && options)
+      if (OCL_OUTPUT_BUILD_LOG && err)
         llvm::errs() << options;
     } else
       p = NULL;
-- 
2.5.0



More information about the Beignet mailing list