[Mesa-dev] clover: Fix build after llvm r325155 and r325160

Dieter Nützel Dieter at nuetzel-hh.de
Fri Feb 16 04:49:44 UTC 2018


Hello Jan,

something semilar is needed fro libclc, too.

LLVM-CC nvptx64--nvidiacl/lib/geometric/dot.cl.bc
./utils/prepare-builtins.cpp:108:3: error: no matching function for call 
to 'WriteBitcodeToFile'
   WriteBitcodeToFile(M, Out->os());
   ^~~~~~~~~~~~~~~~~~
/usr/local/include/llvm/Bitcode/BitcodeWriter.h:129:8: note: candidate 
function not viable: no known
       conversion from 'llvm::Module *' to 'const llvm::Module' for 1st 
argument; dereference the
       argument with *
   void WriteBitcodeToFile(const Module &M, raw_ostream &Out,
        ^

Greetings,
Dieter


More information about the mesa-dev mailing list