Skip to content

Commit b8d0cba

Browse files
authored
[TextAPI] Apply NFC code fixups (#88639)
* Remove unnecessary cast * Annotate `#endif`
1 parent 5927492 commit b8d0cba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/include/llvm/TextAPI/Utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#if !defined(PATH_MAX)
2323
#define PATH_MAX 1024
24-
#endif
24+
#endif // !defined(PATH_MAX)
2525

2626
#define MACCATALYST_PREFIX_PATH "/System/iOSSupport"
2727
#define DRIVERKIT_PREFIX_PATH "/System/DriverKit"

llvm/lib/TextAPI/BinaryReader/DylibReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ accumulateLocs(MachOObjectFile &Obj,
484484
auto Sym = parseSymbol(Name);
485485

486486
if (!File.empty() && Line != 0)
487-
LocMap.insert({Sym.Name.str(), RecordLoc(File, Line)});
487+
LocMap.insert({Sym.Name, RecordLoc(File, Line)});
488488
}
489489

490490
return LocMap;

0 commit comments

Comments
 (0)