A recent commit removed <string> from ErrorHandling.h. The removal caused <string> to be no longer included for llvm/tools/llvm-cxxdump/Error.cpp which uses the string type.
This patch adds <string> to llvm/tools/llvm-cxxdump/Error.cpp.
Differential D111354
[NFC] Including <string> in llvm-cxxdump/Error.cpp qiongsiwu1 on Oct 7 2021, 1:53 PM. Authored by
Details A recent commit removed <string> from ErrorHandling.h. The removal caused <string> to be no longer included for llvm/tools/llvm-cxxdump/Error.cpp which uses the string type. This patch adds <string> to llvm/tools/llvm-cxxdump/Error.cpp.
Diff Detail
Event TimelineComment Actions @qiongsiwu1 I ran check-llvm on windows, wsl and linux boxes and didn't hit this - does this mean llvm-cxxdump isn't built/tested by default at all? Comment Actions Thanks for looking into this! llvm-cxxdump builds on Linux without explicitly including the header, at least during our testing. For Linux on Power, it happens to work for us due to the build compiler including the header through other means as a side effect (Specifically, the utility header including cstdlib). The build failed on AIX because the libc++ on the platform not having such side effects. Comment Actions Thanks for the clarification - the lack of buildbot failures suggested I'd gotten it mostly right - implicit dependencies will always hit in unexpected places of course..... |