fix Issue 11066 - Spurious warning 'statement is not reachable' with -profile
[Refactoring] in FuncDeclaration::semantic3
Merge pull request #3737 from 9rnsr/fix11066

Issue 11066 - Spurious warning 'statement is not reachable' with -profile