https://bugs.freedesktop.org/show_bug.cgi?id=111523

            Bug ID: 111523
           Summary: Clover - radeonsi: Mesa git - broken compilation with
                    current LLVM 10.0.0
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: critical
          Priority: not set
         Component: Gallium/StateTracker/Clover
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

../src/gallium/state_trackers/clover/llvm/invocation.cpp: In function
‘std::unique_ptr<clang::CompilerInstance>
{anonymous}::create_compiler_instance(const clover::device&, const
std::vector<std::__cxx11::basic_string<char> >&, std::string&)’:
../src/gallium/state_trackers/clover/llvm/invocation.cpp:203:81: error: no
matching function for call to
‘clang::CompilerInvocation::CreateFromArgs(clang::CompilerInvocation&, const
char* const*, const char* const*, clang::DiagnosticsEngine&)’
  203 |              c->getInvocation(), copts.data(), copts.data() +
copts.size(), diag))
      |                                                                        
        ^
In file included from /usr/local/include/clang/Frontend/CompilerInstance.h:15,
                 from ../src/gallium/state_trackers/clover/llvm/codegen.hpp:37,
                 from
../src/gallium/state_trackers/clover/llvm/invocation.cpp:49:
/usr/local/include/clang/Frontend/CompilerInvocation.h:157:15: note: candidate:
‘static bool
clang::CompilerInvocation::CreateFromArgs(clang::CompilerInvocation&,
llvm::ArrayRef<const char*>, clang::DiagnosticsEngine&)’
  157 |   static bool CreateFromArgs(CompilerInvocation &Res,
      |               ^~~~~~~~~~~~~~
/usr/local/include/clang/Frontend/CompilerInvocation.h:157:15: note:  
candidate expects 3 arguments, 4 provided
../src/gallium/state_trackers/clover/llvm/invocation.cpp: In function
‘std::unique_ptr<llvm::Module> {anonymous}::link(llvm::LLVMContext&, const
clang::CompilerInstance&, const std::vector<clover::module>&, std::string&)’:
../src/gallium/state_trackers/clover/llvm/invocation.cpp:360:23: warning:
moving a local object in a return statement prevents copy elision
[-Wpessimizing-move]
  360 |       return std::move(mod);
      |              ~~~~~~~~~^~~~~
../src/gallium/state_trackers/clover/llvm/invocation.cpp:360:23: note: remove
‘std::move’ call

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to