mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add a nothrow flag to the SIL apply_inst.
If the compiler can prove that a throwing function actually does not throw it can replace a try_apply with an "apply [nothrow]". Such an apply_inst calls a function with an error result but does not have the overhead of checking for the error case. Currently this flag is not set, yet. Swift SVN r31151
This commit is contained in:
@@ -51,7 +51,7 @@ const uint16_t VERSION_MAJOR = 0;
|
||||
/// To ensure that two separate changes don't silently get merged into one
|
||||
/// in source control, you should also update the comment to briefly
|
||||
/// describe what change you made.
|
||||
const uint16_t VERSION_MINOR = 209; // Last change: add kind to dealloc_ref
|
||||
const uint16_t VERSION_MINOR = 210; // Last change: nothrow flag in apply_inst
|
||||
|
||||
using DeclID = Fixnum<31>;
|
||||
using DeclIDField = BCFixed<31>;
|
||||
|
||||
Reference in New Issue
Block a user