Skip to content

Commit 2068887

Browse files
committed
[GlobalPropertyOpt] Add missing return.
Noticed by @eeckstein.
1 parent 58e89b3 commit 2068887

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)