[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:22:59 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `llvm` at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
3.488 [815/34/10] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCFragment.cpp.o
3.568 [814/34/11] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCAsmInfo.cpp.o
3.681 [813/34/12] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/COFFAsmParser.cpp.o
3.783 [812/34/13] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/COFFMasmParser.cpp.o
3.923 [811/34/14] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/ELFAsmParser.cpp.o
3.926 [810/34/15] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCWinCOFFStreamer.cpp.o
3.950 [809/34/16] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCAssembler.cpp.o
3.973 [808/34/17] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCExpr.cpp.o
4.030 [807/34/18] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/ConstantPools.cpp.o
4.042 [806/34/19] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCContext.cpp.o
FAILED: lib/MC/CMakeFiles/LLVMMC.dir/MCContext.cpp.o 
/opt/ccache/bin/g++ -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/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/MC -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/MC -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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 /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/MC/MCContext.cpp
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/MC/MCContext.cpp: In member function ‘llvm::MCSymbol* llvm::MCContext::createBlockSymbol(const llvm::Twine&, bool)’:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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 /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include/llvm/MC/MCContext.h:17,
                 from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/MC/MCContext.cpp:9:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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) {
      |                       ^~~~~~~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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 /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include/llvm/Support/FormatVariadicDetails.h:14,
                 from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include/llvm/BinaryFormat/Dwarf.h:26,
                 from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include/llvm/MC/MCContext.h:18,
                 from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/MC/MCContext.cpp:9:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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) {
      | ^~~~~~~~
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include/llvm/Support/raw_ostream.h:437:1: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/9/bits/move.h:55,
                 from /usr/include/c++/9/bits/stl_pair.h:59,
                 from /usr/include/c++/9/utility:70,
                 from /usr/include/c++/9/tuple:38,
                 from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include/llvm/ADT/DenseMapInfo.h:20,
                 from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include/llvm/ADT/DenseMap.h:17,
                 from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include/llvm/MC/MCContext.h:12,
                 from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/MC/MCContext.cpp:9:
/usr/include/c++/9/type_traits: In substitution of ‘template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = ((!(bool)std::is_reference_v<llvm::StringRef>) && ((bool)std::is_base_of_v<llvm::raw_ostream, llvm::StringRef>)); _Tp = llvm::StringRef&&]’:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/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]’
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/lib/MC/MCContext.cpp:328:64:   required from here
/usr/include/c++/9/type_traits:2378:11: error: no type named ‘type’ in ‘struct std::enable_if<false, llvm::StringRef&&>’
 2378 |     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