Skip to content

Commit 52b847e

Browse files
authored
Merge pull request #34318 from slavapestov/sil-opt-parser-lookup
sil-opt: Disable parser lookup
2 parents aa3e590 + 5b38671 commit 52b847e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/SIL/Parser/basic.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ bb0(%0 : $*T):
278278
%2 = apply %1<T>(%0) : $@convention(witness_method: Runcible) <Self : Runcible> (@in Self) -> Int
279279
%3 = metatype $@thick T.Type
280280
// CHECK: witness_method $T, #Runcible.static_method
281-
%4 = witness_method $T, #Runcible.static_method : $@convention(witness_method: Runcible) <Self : Runcible> (@thick T.Type) -> ()
282-
%5 = apply %4<T>(%3) : $@convention(witness_method: Runcible) <Self : Runcible> (@thick T.Type) -> ()
281+
%4 = witness_method $T, #Runcible.static_method : $@convention(witness_method: Runcible) <Self : Runcible> (@thick Self.Type) -> ()
282+
%5 = apply %4<T>(%3) : $@convention(witness_method: Runcible) <Self : Runcible> (@thick Self.Type) -> ()
283283
%6 = tuple ()
284284
destroy_addr %0 : $*T
285285
return %6 : $()

tools/sil-opt/SILOpt.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ int main(int argc, char **argv) {
337337
// cache.
338338
Invocation.getClangImporterOptions().ModuleCachePath = ModuleCachePath;
339339
Invocation.setParseStdlib();
340+
Invocation.getLangOptions().DisableParserLookup = true;
340341
Invocation.getLangOptions().DisableAvailabilityChecking = true;
341342
Invocation.getLangOptions().EnableAccessControl = false;
342343
Invocation.getLangOptions().EnableObjCAttrRequiresFoundation = false;

0 commit comments

Comments
 (0)