diff options
author | Gil Pitney <gil.pitney@linaro.org> | 2015-01-28 03:24:36 +0000 |
---|---|---|
committer | Gil Pitney <gil.pitney@linaro.org> | 2015-01-28 03:24:36 +0000 |
commit | 99f4c19d71ca84f0a37f8007c53f19830de18975 (patch) | |
tree | 3b9eb829fb8577e4e758d8822386ef611f7264e7 | |
parent | b79f5c9e92414cec2ab6c5e29ac4817427e793e2 (diff) |
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 <gil.pitney@linaro.org>
-rw-r--r-- | src/core/program.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |