Skip to content

Commit b4f7ddf

Browse files
committed
personality can't be empty
Signed-off-by: Peter Rong <[email protected]>
1 parent 9e9d15a commit b4f7ddf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lld/MachO/BPSectionOrderer.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@ static uint64_t getUnwindInfoEncodingHash(const InputSection *isec) {
7878
cu.relocateOneCompactUnwindEntry(d);
7979
if (cu.lsda)
8080
return xxHash64("HAS LSDA");
81-
StringRef name = (cu.personality == nullptr) ? "<none>"
82-
: cu.personality->getName().empty()
83-
? "<unnamed>"
84-
: cu.personality->getName();
81+
StringRef name = (cu.personality) ? cu.personality->getName() : "<null>";
8582
return xxHash64((name + ";" + Twine::utohexstr(cu.encoding)).str());
8683
}
8784
}

0 commit comments

Comments
 (0)