Skip to content

Commit 879c0c6

Browse files
authored
Merge pull request swiftlang#12082 from dcci/missing-return
[GlobalPropertyOpt] Add missing return.
2 parents 6fcb830 + 2068887 commit 879c0c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/IPO/GlobalPropertyOpt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class GlobalPropertyOpt {
7373
if (!entry.Value)
7474
return os << "unknown-address\n";
7575
if (auto *Inst = dyn_cast<SILInstruction>(entry.Value))
76-
os << Inst->getFunction()->getName() << ": " << entry.Value;
76+
return os << Inst->getFunction()->getName() << ": " << entry.Value;
7777
if (auto *Arg = dyn_cast<SILArgument>(entry.Value))
7878
return os << Arg->getFunction()->getName() << ": " << entry.Value;
7979
return os << entry.Value;

0 commit comments

Comments
 (0)