diff options
| author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-07-27 11:19:36 +0000 |
|---|---|---|
| committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-07-27 11:19:36 +0000 |
| commit | d359cf2e441742296c11ed04855a6d9a6a3831ab (patch) | |
| tree | 82e797cfe46244c5efbca67e3e22be49fce3234c /llvm/utils/TableGen | |
| parent | eb58ed8b5a4e05fda1faa1df52e925e4c79bcc28 (diff) | |
| download | bcm5719-llvm-d359cf2e441742296c11ed04855a6d9a6a3831ab.tar.gz bcm5719-llvm-d359cf2e441742296c11ed04855a6d9a6a3831ab.zip | |
Return -1 only on failure to execute a program.
Also fix some comments.
llvm-svn: 109499
Diffstat (limited to 'llvm/utils/TableGen')
| -rw-r--r-- | llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp b/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp index be6e398bd8c..d4624e26ccd 100644 --- a/llvm/utils/TableGen/LLVMCConfigurationEmitter.cpp +++ b/llvm/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, |

