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

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 20 07:21:59 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `llvm` at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
13.084 [4430/96/2367] Building CXX object lib/ObjCopy/CMakeFiles/LLVMObjCopy.dir/wasm/WasmReader.cpp.o
13.086 [4429/96/2368] Building CXX object lib/ObjCopy/CMakeFiles/LLVMObjCopy.dir/wasm/WasmObjcopy.cpp.o
13.091 [4428/96/2369] Building CXX object lib/ObjCopy/CMakeFiles/LLVMObjCopy.dir/XCOFF/XCOFFObjcopy.cpp.o
13.098 [4427/96/2370] Building CXX object lib/ObjCopy/CMakeFiles/LLVMObjCopy.dir/XCOFF/XCOFFReader.cpp.o
13.098 [4426/96/2371] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/Archive.cpp.o
13.099 [4425/96/2372] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCGOFFStreamer.cpp.o
13.105 [4424/96/2373] Building CXX object lib/ObjCopy/CMakeFiles/LLVMObjCopy.dir/XCOFF/XCOFFWriter.cpp.o
13.107 [4423/96/2374] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/ArchiveWriter.cpp.o
13.113 [4422/96/2375] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/Binary.cpp.o
13.119 [4421/96/2376] 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 /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/1/llvm-x86_64-debian-dylib/build/lib/MC -I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/MC -I/b/1/llvm-x86_64-debian-dylib/build/include -I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/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 -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -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 /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/MC/MCContext.cpp
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/MC/MCContext.cpp:328:61: error: invalid operands to binary expression ('llvm::StringRef' and 'const llvm::Twine')
  return createRenamableSymbol(MAI->getPrivateLabelPrefix() << Name,
                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/ADT/Twine.h:572:23: note: candidate function not viable: no known conversion from 'llvm::StringRef' to 'llvm::raw_ostream &' for 1st argument
  inline raw_ostream &operator<<(raw_ostream &OS, const Twine &RHS) {
                      ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/Support/raw_ostream.h:783:14: note: candidate function not viable: no known conversion from 'llvm::StringRef' to 'llvm::raw_ostream &' for 1st argument
raw_ostream &operator<<(raw_ostream &OS, std::nullopt_t);
             ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/Support/VersionTuple.h:191:14: note: candidate function not viable: no known conversion from 'llvm::StringRef' to 'llvm::raw_ostream &' for 1st argument
raw_ostream &operator<<(raw_ostream &Out, const VersionTuple &V);
             ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/ADT/APInt.h:2128:21: note: candidate function not viable: no known conversion from 'llvm::StringRef' to 'llvm::raw_ostream &' for 1st argument
inline raw_ostream &operator<<(raw_ostream &OS, const APInt &I) {
                    ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/MC/MCInst.h:241:21: note: candidate function not viable: no known conversion from 'llvm::StringRef' to 'llvm::raw_ostream &' for 1st argument
inline raw_ostream& operator<<(raw_ostream &OS, const MCOperand &MO) {
                    ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/MC/MCInst.h:246:21: note: candidate function not viable: no known conversion from 'llvm::StringRef' to 'llvm::raw_ostream &' for 1st argument
inline raw_ostream& operator<<(raw_ostream &OS, const MCInst &MI) {
                    ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/MC/MCExpr.h:138:21: note: candidate function not viable: no known conversion from 'llvm::StringRef' to 'llvm::raw_ostream &' for 1st argument
inline raw_ostream &operator<<(raw_ostream &OS, const MCExpr &E) {
                    ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/MC/MCLabel.h:49:21: note: candidate function not viable: no known conversion from 'llvm::StringRef' to 'llvm::raw_ostream &' for 1st argument
inline raw_ostream &operator<<(raw_ostream &OS, const MCLabel &Label) {
                    ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/MC/MCSymbol.h:437:21: note: candidate function not viable: no known conversion from 'llvm::StringRef' to 'llvm::raw_ostream &' for 1st argument
inline raw_ostream &operator<<(raw_ostream &OS, const MCSymbol &Sym) {
                    ^
/b/1/llvm-x86_64-debian-dylib/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) {
^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/Support/raw_ostream.h:787:14: note: candidate template ignored: could not match 'optional<type-parameter-0-0>' against 'const llvm::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