[llvm] [CodeGen] Use temp symbol for MBBs (PR #95031)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 20 04:25:28 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `llvm` at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/376

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
270.189 [4507/8/1275] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCAsmStreamer.cpp.o
270.339 [4506/8/1276] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCDXContainerWriter.cpp.o
270.361 [4505/8/1277] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCInst.cpp.o
270.378 [4504/8/1278] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCInstPrinter.cpp.o
270.401 [4503/8/1279] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCInstrAnalysis.cpp.o
270.424 [4502/8/1280] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCInstrDesc.cpp.o
270.445 [4501/8/1281] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCInstrInfo.cpp.o
270.471 [4500/8/1282] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCLabel.cpp.o
270.494 [4499/8/1283] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCLinkerOptimizationHint.cpp.o
270.561 [4498/8/1284] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCContext.cpp.o
FAILED: lib/MC/CMakeFiles/LLVMMC.dir/MCContext.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /opt/homebrew/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/Users/buildbot/buildbot-root/aarch64-darwin/build/lib/MC -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/lib/MC -I/Users/buildbot/buildbot-root/aarch64-darwin/build/include -I/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include -isystem /opt/homebrew/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -O3 -DNDEBUG -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/MC/CMakeFiles/LLVMMC.dir/MCContext.cpp.o -MF lib/MC/CMakeFiles/LLVMMC.dir/MCContext.cpp.o.d -o lib/MC/CMakeFiles/LLVMMC.dir/MCContext.cpp.o -c /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/lib/MC/MCContext.cpp
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/lib/MC/MCContext.cpp:328:61: error: invalid operands to binary expression ('StringRef' and 'const Twine')
  return createRenamableSymbol(MAI->getPrivateLabelPrefix() << Name,
                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include/llvm/ADT/Twine.h:572:23: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
  inline raw_ostream &operator<<(raw_ostream &OS, const Twine &RHS) {
                      ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include/llvm/Support/raw_ostream.h:783:14: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
raw_ostream &operator<<(raw_ostream &OS, std::nullopt_t);
             ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include/llvm/Support/VersionTuple.h:191:14: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
raw_ostream &operator<<(raw_ostream &Out, const VersionTuple &V);
             ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include/llvm/ADT/APInt.h:2128:21: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
inline raw_ostream &operator<<(raw_ostream &OS, const APInt &I) {
                    ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include/llvm/MC/MCInst.h:241:21: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
inline raw_ostream& operator<<(raw_ostream &OS, const MCOperand &MO) {
                    ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include/llvm/MC/MCInst.h:246:21: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
inline raw_ostream& operator<<(raw_ostream &OS, const MCInst &MI) {
                    ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include/llvm/MC/MCExpr.h:138:21: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
inline raw_ostream &operator<<(raw_ostream &OS, const MCExpr &E) {
                    ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include/llvm/MC/MCLabel.h:49:21: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
inline raw_ostream &operator<<(raw_ostream &OS, const MCLabel &Label) {
                    ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include/llvm/MC/MCSymbol.h:437:21: note: candidate function not viable: no known conversion from 'StringRef' to 'raw_ostream &' for 1st argument
inline raw_ostream &operator<<(raw_ostream &OS, const MCSymbol &Sym) {
                    ^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include/llvm/Support/raw_ostream.h:437:1: note: candidate template ignored: requirement 'std::is_base_of_v<llvm::raw_ostream, llvm::StringRef>' was not satisfied [with OStream = llvm::StringRef, T = llvm::Twine]
operator<<(OStream &&OS, const T &Value) {
^
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/include/llvm/Support/raw_ostream.h:787:14: note: candidate template ignored: could not match 'const std::optional<T>' against 'const Twine'
raw_ostream &operator<<(raw_ostream &OS, const std::optional<T> &O) {
             ^
1 error generated.

```

https://github.com/llvm/llvm-project/pull/95031


More information about the llvm-commits mailing list