mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user