[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:27:04 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `ml-opt-dev-x86-64` running on `ml-opt-dev-x86-64-b2` while building `llvm` at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
350.740 [1887/64/1665] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVReader.cpp.o
350.748 [1886/64/1666] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVScope.cpp.o
350.768 [1885/64/1667] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSort.cpp.o
350.784 [1884/64/1668] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSupport.cpp.o
350.808 [1883/64/1669] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCAssembler.cpp.o
350.824 [1882/64/1670] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVSymbol.cpp.o
350.840 [1881/64/1671] Building CXX object lib/DebugInfo/LogicalView/CMakeFiles/LLVMDebugInfoLogicalView.dir/Core/LVType.cpp.o
350.872 [1880/64/1672] Building CXX object lib/DebugInfo/PDB/CMakeFiles/LLVMDebugInfoPDB.dir/GenericError.cpp.o
350.880 [1879/64/1673] Building CXX object lib/DebugInfo/PDB/CMakeFiles/LLVMDebugInfoPDB.dir/IPDBSourceFile.cpp.o
350.896 [1878/64/1674] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCContext.cpp.o
FAILED: lib/MC/CMakeFiles/LLVMMC.dir/MCContext.cpp.o 
ccache /usr/bin/c++ -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/ml-opt-dev-x86-64-b1/build/lib/MC -I/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/MC -I/b/ml-opt-dev-x86-64-b1/build/include -I/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -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/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/MC/MCContext.cpp
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/MC/MCContext.cpp: In member function ‘llvm::MCSymbol* llvm::MCContext::createBlockSymbol(const llvm::Twine&, bool)’:
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/MC/MCContext.cpp:328:61: error: no match for ‘operator<<’ (operand types are ‘llvm::StringRef’ and ‘const llvm::Twine’)
  328 |   return createRenamableSymbol(MAI->getPrivateLabelPrefix() << Name,
      |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~
      |                                                          |     |
      |                                                          |     const llvm::Twine
      |                                                          llvm::StringRef
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/MC/MCContext.h:17,
                 from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/MC/MCContext.cpp:9:
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/ADT/Twine.h:572:23: note: candidate: ‘llvm::raw_ostream& llvm::operator<<(llvm::raw_ostream&, const llvm::Twine&)’
  572 |   inline raw_ostream &operator<<(raw_ostream &OS, const Twine &RHS) {
      |                       ^~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/ADT/Twine.h:572:47: note:   no known conversion for argument 1 from ‘llvm::StringRef’ to ‘llvm::raw_ostream&’
  572 |   inline raw_ostream &operator<<(raw_ostream &OS, const Twine &RHS) {
      |                                  ~~~~~~~~~~~~~^~
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/Support/FormatVariadicDetails.h:14,
                 from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/BinaryFormat/Dwarf.h:26,
                 from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/MC/MCContext.h:18,
                 from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/MC/MCContext.cpp:9:
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/Support/raw_ostream.h:437:1: note: candidate: ‘template<class OStream, class T> std::enable_if_t<((! is_reference_v<OStream>) && is_base_of_v<llvm::raw_ostream, OStream>), OStream&&> llvm::operator<<(OStream&&, const T&)’
  437 | operator<<(OStream &&OS, const T &Value) {
      | ^~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/Support/raw_ostream.h:437:1: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/10/bits/move.h:57,
                 from /usr/include/c++/10/bits/stl_pair.h:59,
                 from /usr/include/c++/10/utility:70,
                 from /usr/include/c++/10/tuple:38,
                 from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/ADT/DenseMapInfo.h:20,
                 from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/ADT/DenseMap.h:17,
                 from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/MC/MCContext.h:12,
                 from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/MC/MCContext.cpp:9:
/usr/include/c++/10/type_traits: In substitution of ‘template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = llvm::StringRef&&]’:
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/Support/raw_ostream.h:437:1:   required by substitution of ‘template<class OStream, class T> std::enable_if_t<((! is_reference_v<OStream>) && is_base_of_v<llvm::raw_ostream, OStream>), OStream&&> llvm::operator<<(OStream&&, const T&) [with OStream = llvm::StringRef; T = llvm::Twine]’
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/MC/MCContext.cpp:328:64:   required from here
/usr/include/c++/10/type_traits:2554:11: error: no type named ‘type’ in ‘struct std::enable_if<false, llvm::StringRef&&>’
 2554 |     using enable_if_t = typename enable_if<_Cond, _Tp>::type;
      |           ^~~~~~~~~~~

```

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


More information about the llvm-commits mailing list