From 67d985ffb2d02941dd4e34ecea3f3b8c0fcfaf4f Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Tue, 27 Jul 2010 11:19:36 +0000 Subject: 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 --- utils/TableGen/LLVMCConfigurationEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/TableGen') 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, -- cgit v1.2.3