diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2008-11-15 17:50:47 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2008-11-15 17:50:47 +0000 |
commit | 70c44f0cce6516df270019444f8f04066d6b16c9 (patch) | |
tree | 2df423e08b4a7d1303dbf789c5c4af58de15d1c2 /lib/VMCore/Verifier.cpp | |
parent | 2ef5d4cd6ab2e8f57bba88cc6ef0e3132e784e63 (diff) | |
download | external_llvm-70c44f0cce6516df270019444f8f04066d6b16c9.zip external_llvm-70c44f0cce6516df270019444f8f04066d6b16c9.tar.gz external_llvm-70c44f0cce6516df270019444f8f04066d6b16c9.tar.bz2 |
Correct this error message.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59370 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Verifier.cpp')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 7540cc8..a699ab2 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -639,7 +639,7 @@ void Verifier::visitReturnInst(ReturnInst &RI) { unsigned N = RI.getNumOperands(); if (F->getReturnType() == Type::VoidTy) Assert2(N == 0, - "Found return instr that returns void in Function of non-void " + "Found return instr that returns non-void in Function of void " "return type!", &RI, F->getReturnType()); else if (N == 1 && F->getReturnType() == RI.getOperand(0)->getType()) { // Exactly one return value and it matches the return type. Good. |