Add the first SIL-based waring - "missing return"

Add a warning on a missing return statement.
(This is not yet an error since we need to handle no-return functions.)

Swift SVN r6153
This commit is contained in:
Anna Zaks
2013-07-11 17:12:12 +00:00
parent c315b357af
commit 2e4170e249
9 changed files with 202 additions and 19 deletions

View File

@@ -138,8 +138,12 @@ public:
return &F;
return nullptr;
}
/// verify - Run the SIL verifier to make sure that all Functions follow
/// \brief Analyze the module for correcntess and generate user diagnostics
/// if any.
void check() const;
/// \brief Run the SIL verifier to make sure that all Functions follow
/// invariants.
void verify() const;