diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-06-03 19:20:49 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-06-03 19:20:49 +0000 |
commit | fb4508602726c47f7517f79a7a4d7e178c26e98e (patch) | |
tree | 87b50d9fe0e6f1be05a3165343903423d49c2914 /lib/ExecutionEngine/ExecutionEngine.cpp | |
parent | 499d8f0c3b212819515cdbcb98146fff6f9d877b (diff) | |
download | external_llvm-fb4508602726c47f7517f79a7a4d7e178c26e98e.zip external_llvm-fb4508602726c47f7517f79a7a4d7e178c26e98e.tar.gz external_llvm-fb4508602726c47f7517f79a7a4d7e178c26e98e.tar.bz2 |
Add comments to fallsthrough cases. Also, this fixes PR1492
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37405 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r-- | lib/ExecutionEngine/ExecutionEngine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index 36582ee..bbddb95 100644 --- 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) { |