mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-22 11:55:12 +00:00
Add comments to fallsthrough cases. Also, this fixes PR1492
llvm-svn: 37405
This commit is contained in:
parent
a8154b6330
commit
bbb85e2738
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user