Made use of @warn_unused_result a warning with a fixit (#2760)

https://bugs.swift.org/browse/SR-1052
This commit is contained in:
Trent Nadeau
2016-06-08 13:10:21 -04:00
committed by Jordan Rose
parent e62d939a69
commit 78a420d850
16 changed files with 47 additions and 295 deletions

View File

@@ -1376,14 +1376,6 @@ namespace decls_block {
BCBlob // rename, followed by message
>;
using WarnUnusedResultDeclAttrLayout = BCRecordLayout<
WarnUnusedResult_DECL_ATTR,
BCFixed<1>, // implicit flag
BCVBR<6>, // index at the end of the message,
BCBlob // blob contains the message and mutating-version
// strings, separated by the prior index
>;
using SpecializeDeclAttrLayout = BCRecordLayout<
Specialize_DECL_ATTR,
BCArray<TypeIDField> // concrete types