summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-07-27 11:19:36 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-07-27 11:19:36 +0000
commit67d985ffb2d02941dd4e34ecea3f3b8c0fcfaf4f (patch)
treec7414f5ee29f8837a3feffc91f156f30ece6a3a3 /utils
parent978bb87f8871b953d159c2846b379bc93be27972 (diff)
downloadllvm-67d985ffb2d02941dd4e34ecea3f3b8c0fcfaf4f.tar.gz
llvm-67d985ffb2d02941dd4e34ecea3f3b8c0fcfaf4f.tar.bz2
llvm-67d985ffb2d02941dd4e34ecea3f3b8c0fcfaf4f.tar.xz
Return -1 only on failure to execute a program.
Also fix some comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109499 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/LLVMCConfigurationEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/LLVMCConfigurationEmitter.cpp b/utils/TableGen/LLVMCConfigurationEmitter.cpp
index be6e398bd8..d4624e26cc 100644
--- a/utils/TableGen/LLVMCConfigurationEmitter.cpp
+++ b/utils/TableGen/LLVMCConfigurationEmitter.cpp
@@ -1960,7 +1960,7 @@ struct ActionHandlingCallbackBase
<< "PrintError(\""
<< (d.getNumArgs() >= 1 ? InitPtrToString(d.getArg(0)) : "Unknown error!")
<< "\");\n";
- O.indent(IndentLevel) << "return -1;\n";
+ O.indent(IndentLevel) << "return 1;\n";
}
void onWarningDag(const DagInit& d,