Fix some compiler warnings with asserts disabled

This commit is contained in:
Slava Pestov
2016-04-06 00:44:39 -07:00
parent cd4a7abb02
commit a656fcdc8e
5 changed files with 6 additions and 0 deletions

View File

@@ -363,6 +363,7 @@ public:
lv.getSubstFormalType()).getObjectType();
SILType actualTy = lv.getTypeOfRValue().getObjectType();
assert(expectedTy == actualTy);
(void) expectedTy;
// Reabstract back to the requirement pattern.
if (actualTy != RequirementStorageType) {