[all-commits] [llvm/llvm-project] da7607: [RemoveDIs][DebugInfo] Explicitly convert iterator...
Stephen Tozer via All-commits
all-commits at lists.llvm.org
Tue Jan 16 06:35:16 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: da7607307a5eed532d1ad9d2cd020e67b299b129
https://github.com/llvm/llvm-project/commit/da7607307a5eed532d1ad9d2cd020e67b299b129
Author: Stephen Tozer <Stephen.Tozer at Sony.com>
Date: 2024-01-16 (Tue, 16 Jan 2024)
Changed paths:
M llvm/lib/IR/Metadata.cpp
Log Message:
-----------
[RemoveDIs][DebugInfo] Explicitly convert iterator to pointer for std::distance
This is a small patch attempting to fix an error with a prior patch which
caused buildbot failures on certain targets; for example:
https://lab.llvm.org/buildbot/#/builders/127/builds/60931
The compile error comes from std::distance not having an overload for a
std::array iterator and a raw pointer; this patch converts the iterator
to a pointer to resolve this.
Fixes d499df02
More information about the All-commits
mailing list