Skip to content

Commit

Permalink
[Transforms] Use more specific type
Browse files Browse the repository at this point in the history
Fixes operator overload resolution error on `gcc-11`.
  • Loading branch information
hovind committed Nov 23, 2024
1 parent c043fe0 commit b7d819c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Transforms/StripDebugInfoWithPred.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct StripDebugInfoWithPred
SmallVector<Attribute> newLocs;
if (auto resLocs = op->getAttrOfType<ArrayAttr>(attributeName)) {
bool changed = false;
for (auto loc : resLocs.getAsRange<LocationAttr>()) {
for (auto loc : resLocs.getAsRange<Location>()) {
auto newLoc = getStrippedLoc(loc);
changed |= newLoc != loc;
newLocs.push_back(newLoc);
Expand Down

0 comments on commit b7d819c

Please sign in to comment.