<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - gen_builder_meta.hpp:51:117: error: no matching function for call to â€˜cast(llvm::FunctionCallee)’"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=109540#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - gen_builder_meta.hpp:51:117: error: no matching function for call to â€˜cast(llvm::FunctionCallee)’"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=109540">bug 109540</a>
              from <span class="vcard"><a class="email" href="mailto:the_meulengracht@hotmail.com" title="Philip Meulengracht <the_meulengracht@hotmail.com>"> <span class="fn">Philip Meulengracht</span></a>
</span></b>
        <pre>I haven't really had a chance to make a patch. But I've fixed this in my own
fork, just add .getCallee() like this:

Function* pFunc =
cast<Function>(JM()->mpCurrentModule->getOrInsertFunction("meta.intrinsic.VGATHERPD",
pFuncTy).getCallee());

This is due to the fact that the functions now return an opaque pointer
instead, wrapped in the FunctionCallee class, the offending commit is here:
<a href="https://github.com/llvm-mirror/llvm/commit/9ec60d7d8fa237f19210d325c8c058b89c7b17d2#diff-295d2c56655729b2bd6dc1dfca7c2f0e">https://github.com/llvm-mirror/llvm/commit/9ec60d7d8fa237f19210d325c8c058b89c7b17d2#diff-295d2c56655729b2bd6dc1dfca7c2f0e</a>

The fix is needed several places, also in the codegen template</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>