================
@@ -373,14 +373,14 @@ static std::optional<int64_t>
getConcreteValue(std::optional<NonLoc> SV) {
}
static Messages getPrecedesMsgs(const SubRegion *Region, NonLoc Offset) {
- std::string RegName = getRegionName(Region);
- SmallString<128> Buf;
- llvm::raw_svector_ostream Out(Buf);
- Out << "Access of " << RegName << " at negative byte offset";
- if (auto ConcreteIdx = Offset.getAs<nonloc::ConcreteInt>())
- Out << ' ' << ConcreteIdx->getValue();
----------------
NagyDonat wrote:
This `raw_svector_ostream` solution is very clunky, so I replaced it with a
less ugly alternative when I re-added the code that prints the offset.
https://github.com/llvm/llvm-project/pull/98621
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits