[all-commits] [llvm/llvm-project] d5e4a5: Cleanup: avoid referring to std::vector<T> members...
alexfh via All-commits
all-commits at lists.llvm.org
Fri Sep 30 04:05:46 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d5e4a5a12f17f34e5840caf868a9839d5880d8ca
https://github.com/llvm/llvm-project/commit/d5e4a5a12f17f34e5840caf868a9839d5880d8ca
Author: Alexander Kornienko <alexfh at google.com>
Date: 2022-09-30 (Fri, 30 Sep 2022)
Changed paths:
M lld/COFF/Chunks.h
Log Message:
-----------
Cleanup: avoid referring to std::vector<T> members when T is incomplete.
This is not legal according to the C++ standard, and causes build errors in
particular in C++20 mode. Fix it by defining the vector's type before using the
vector.
Patch by poompatai at google.com.
More information about the All-commits
mailing list