Skip to content

Commit fd9b337

Browse files
tltaoTony Tao
andauthored
[TLI] Remove leftover assert in TargetLibraryInfoImpl initialize (#79056)
Remove unnecessary assert for a sorted StandardNames after implementation of getLibFunc is changed from binary search to a DenseMap Lookup in commit 7d950f0. The original getLibFunc binary search implementation is in commit c740e3f. Co-authored-by: Tony Tao <[email protected]>
1 parent 1715866 commit fd9b337

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/Analysis/TargetLibraryInfo.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,6 @@ bool TargetLibraryInfoImpl::isCallingConvCCompatible(Function *F) {
163163
/// triple gets a sane set of defaults.
164164
static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T,
165165
ArrayRef<StringLiteral> StandardNames) {
166-
// Verify that the StandardNames array is in alphabetical order.
167-
assert(
168-
llvm::is_sorted(StandardNames,
169-
[](StringRef LHS, StringRef RHS) { return LHS < RHS; }) &&
170-
"TargetLibraryInfoImpl function names must be sorted");
171-
172166
// Set IO unlocked variants as unavailable
173167
// Set them as available per system below
174168
TLI.setUnavailable(LibFunc_getc_unlocked);

0 commit comments

Comments
 (0)