Correct this error message.
[oota-llvm.git] / lib / VMCore / Verifier.cpp
index 7540cc83189793c10f40087f4f6323db5caf3259..a699ab2af205292d3fc9657a5baef9d39a89eea9 100644 (file)
@@ -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.