File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -524,14 +524,8 @@ namespace {
524
524
// Check if module aliasing was used for the given imported module; for
525
525
// example, if '-module-alias Foo=Bar' was passed and this module has
526
526
// 'import Foo', its corresponding real module name 'Bar' should be printed.
527
- ImportPath::Builder builderWithRealModuleName;
528
- auto path = ID->getImportPath (/* outRealModuleName=*/ &builderWithRealModuleName);
529
- if (!builderWithRealModuleName.get ().empty ()) {
530
- // Module aliasing was used, so print its real module name
531
- builderWithRealModuleName.get ().print (OS);
532
- } else {
533
- path.print (OS);
534
- }
527
+ ImportPath::Builder scratch;
528
+ ID->getRealImportPath (scratch).print (OS);
535
529
OS << " ')" ;
536
530
}
537
531
You can’t perform that action at this time.
0 commit comments