From b7d819ca7c74786f7966076cfe509b4075b2166a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Hovind?= Date: Fri, 15 Nov 2024 16:26:15 +0100 Subject: [PATCH] [Transforms] Use more specific type Fixes operator overload resolution error on `gcc-11`. --- lib/Transforms/StripDebugInfoWithPred.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/StripDebugInfoWithPred.cpp b/lib/Transforms/StripDebugInfoWithPred.cpp index 26e388e0e88b..54cf440edc93 100644 --- a/lib/Transforms/StripDebugInfoWithPred.cpp +++ b/lib/Transforms/StripDebugInfoWithPred.cpp @@ -57,7 +57,7 @@ struct StripDebugInfoWithPred SmallVector newLocs; if (auto resLocs = op->getAttrOfType(attributeName)) { bool changed = false; - for (auto loc : resLocs.getAsRange()) { + for (auto loc : resLocs.getAsRange()) { auto newLoc = getStrippedLoc(loc); changed |= newLoc != loc; newLocs.push_back(newLoc);