summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-06-03 19:20:49 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-06-03 19:20:49 +0000
commitb781886de708b9f096583a675eadf01f51b9ecad (patch)
tree96b25ff3a681becd6339535cd2b9da541de4118e /llvm/lib/ExecutionEngine/ExecutionEngine.cpp
parent8c32c1114fcd028874012d14b73fa6598c39ce4c (diff)
downloadbcm5719-llvm-b781886de708b9f096583a675eadf01f51b9ecad.tar.gz
bcm5719-llvm-b781886de708b9f096583a675eadf01f51b9ecad.zip
Add comments to fallsthrough cases. Also, this fixes PR1492
llvm-svn: 37405
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index 36582ee2ed9..bbddb95ec34 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -242,16 +242,19 @@ int ExecutionEngine::runFunctionAsMain(Function *Fn,
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) {
OpenPOWER on IntegriCloud