Merge remote-tracking branch 'origin/master' into master-llvm-swift5-transition

This commit is contained in:
swift-ci
2018-03-08 01:58:15 -08:00
35 changed files with 58 additions and 65 deletions

View File

@@ -473,7 +473,7 @@ public:
/// \returns True if the function is marked with the @_semantics attribute
/// and has special semantics that the optimizer can use to optimize the
/// function.
bool hasSemanticsAttrs() const { return SemanticsAttrSet.size() > 0; }
bool hasSemanticsAttrs() const { return !SemanticsAttrSet.empty(); }
/// \returns True if the function has a semantic attribute that starts with a
/// specific string.