projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
499d8f0
)
Add comments to fallsthrough cases. Also, this fixes PR1492
author
Anton Korobeynikov
<asl@math.spbu.ru>
Sun, 3 Jun 2007 19:20:49 +0000
(19:20 +0000)
committer
Anton Korobeynikov
<asl@math.spbu.ru>
Sun, 3 Jun 2007 19:20:49 +0000
(19:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37405
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ExecutionEngine/ExecutionEngine.cpp
patch
|
blob
|
history
diff --git
a/lib/ExecutionEngine/ExecutionEngine.cpp
b/lib/ExecutionEngine/ExecutionEngine.cpp
index 36582ee2ed9e485dd4c13e42d836bf2340425c2f..bbddb95ec34df03e42c4d745e75520d2044c3255 100644
(file)
--- a/
lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/
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) {