diff options
author | Angelo Matni <angelomatni@google.com> | 2022-10-14 10:28:46 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-10-14 10:28:46 -0700 |
commit | ccde601f140c79344e67e3a5164524ea3d8f43aa (patch) | |
tree | 26c7d00f6c2ba25e77732bfd5f94f1809bbba636 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | c1909d73372e669a44a2aefe82de873c2161cc44 (diff) | |
download | llvm-ccde601f140c79344e67e3a5164524ea3d8f43aa.zip llvm-ccde601f140c79344e67e3a5164524ea3d8f43aa.tar.gz llvm-ccde601f140c79344e67e3a5164524ea3d8f43aa.tar.bz2 |
Fix llvm/lib/ObjCopy, llvm/llvm-ifs: c++20 compatibility
Cleanup: avoid referring to `std::vector<T>` members when `T` is incomplete.
This is [not legal](https://timsong-cpp.github.io/cppwp/n4868/vector#overview-4)
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.
Reviewed By: saugustine, MaskRay
Differential Revision: https://reviews.llvm.org/D135906
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions