Skip to content

Commit bb3b89f

Browse files
committed
Use old LLVM method here
1 parent a5c948a commit bb3b89f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/RemoteInspection/TypeLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ BuiltinTypeInfo::BuiltinTypeInfo(TypeRefBuilder &builder,
247247
// Returns 0 if this isn't an Int
248248
static unsigned isIntType(std::string name) {
249249
llvm::StringRef nameRef(name);
250-
if (nameRef.starts_with("Bi") && nameRef.ends_with("_")) {
250+
if (nameRef.starts_with("Bi") && nameRef.endswith("_")) {
251251
llvm::StringRef naturalRef = nameRef.drop_front(2).drop_back();
252252
uint8_t natural;
253253
if (naturalRef.getAsInteger(10, natural)) {

0 commit comments

Comments
 (0)