From 99f4c19d71ca84f0a37f8007c53f19830de18975 Mon Sep 17 00:00:00 2001 From: Gil Pitney Date: Wed, 28 Jan 2015 03:24:36 +0000 Subject: LLVM 3.6: Change sense of test on return result of Linker::LinkModules() Previous test was wrong. - if (!stdlib || !Result) { + if (!stdlib || Result) { Signed-off-by: Gil Pitney --- src/core/program.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/program.cpp b/src/core/program.cpp index 8c27f74..4ff9fb2 100644 --- a/src/core/program.cpp +++ b/src/core/program.cpp @@ -583,7 +583,7 @@ cl_int Program::build(const char *options, errMsg += strdup(Message.c_str()); } - if (!stdlib || !Result) { + if (!stdlib || Result) { dep.compiler->appendLog("link error: "); dep.compiler->appendLog(errMsg); dep.compiler->appendLog("\n"); -- cgit v1.2.3