Skip to content

Commit bf6527b

Browse files
authored
Merge pull request #28524 from atrick/suppress-unused-warning
2 parents 3d9587c + 015d3d0 commit bf6527b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/SIL/SILVerifier.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1885,13 +1885,14 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
18851885
// Unsafe enforcement is used for some unrecognizable access patterns,
18861886
// like debugger variables. The compiler never cares about the source of
18871887
// those accesses.
1888-
AccessedStorage storage = findAccessedStorage(BAI->getSource());
1888+
findAccessedStorage(BAI->getSource());
18891889
// FIXME: rdar://57291811 - the following check for valid storage will be
18901890
// reenabled shortly. A fix is planned. In the meantime, the possiblity that
18911891
// a real miscompilation could be caused by this failure is insignificant.
18921892
// I will probably enable a much broader SILVerification of address-type
18931893
// block arguments first to ensure we never hit this check again.
18941894
/*
1895+
AccessedStorage storage = findAccessedStorage(BAI->getSource());
18951896
if (BAI->getEnforcement() != SILAccessEnforcement::Unsafe)
18961897
require(storage, "Unknown formal access pattern");
18971898
*/

0 commit comments

Comments
 (0)