[llvm-commits] CVS: llvm/lib/ExecutionEngine/ExecutionEngine.cpp

Anton Korobeynikov asl at math.spbu.ru
Sun Jun 3 12:21:11 PDT 2007



Changes in directory llvm/lib/ExecutionEngine:

ExecutionEngine.cpp updated: 1.116 -> 1.117
---
Log message:

Add comments to fallsthrough cases. Also, this fixes PR1492: http://llvm.org/PR1492 


---
Diffs of the changes:  (+3 -0)

 ExecutionEngine.cpp |    3 +++
 1 files changed, 3 insertions(+)


Index: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff -u llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.116 llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.117
--- llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.116	Sun Jun  3 14:17:35 2007
+++ llvm/lib/ExecutionEngine/ExecutionEngine.cpp	Sun Jun  3 14:20:49 2007
@@ -242,16 +242,19 @@
      cerr << "Invalid type for third argument of main() supplied\n";
      abort();
    }
+   // FALLS THROUGH
   case 2:
    if (FTy->getParamType(1) != PPInt8Ty) {
      cerr << "Invalid type for second argument of main() supplied\n";
      abort();
    }
+   // FALLS THROUGH
   case 1:
    if (FTy->getParamType(0) != Type::Int32Ty) {
      cerr << "Invalid type for first argument of main() supplied\n";
      abort();
    }
+   // FALLS THROUGH
   case 0:
    if (FTy->getReturnType() != Type::Int32Ty &&
        FTy->getReturnType() != Type::VoidTy) {






More information about the llvm-commits mailing list