Skip to content

Commit ad33e6a

Browse files
committed
Fix NULL pointer dereference
1 parent 3d36113 commit ad33e6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/SIL/Utils/PrunedLiveness.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ llvm::StringRef PrunedLiveBlocks::getStringRef(IsLive isLive) const {
178178
void PrunedLiveBlocks::print(llvm::raw_ostream &OS) const {
179179
if (!discoveredBlocks) {
180180
OS << "No deterministic live block list\n";
181+
return;
181182
}
182183
for (auto *block : *discoveredBlocks) {
183184
block->printAsOperand(OS);

0 commit comments

Comments
 (0)