We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4eafbc commit 074c420Copy full SHA for 074c420
bolt/lib/Rewrite/BuildIDRewriter.cpp
@@ -78,8 +78,7 @@ Error BuildIDRewriter::sectionInitializer() {
78
"out of bounds while reading note section: %s",
79
toString(Cursor.takeError()).c_str());
80
81
- if (Type == ELF::NT_GNU_BUILD_ID && Name.substr(0, 3) == "GNU" &&
82
- DescSz) {
+ if (Type == ELF::NT_GNU_BUILD_ID && Name.starts_with("GNU") && DescSz) {
83
BuildIDSection = NoteSection;
84
BuildID = Desc;
85
BC.setFileBuildID(getPrintableBuildID(Desc));
0 commit comments