<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">It would be great if you can attach your source code and complete error message.</div><div class=""><br class=""></div><div class="">But one of the possible reasons might be some API with var-args, Module::getOrInsertFunction for example(<a href="http://llvm.org/doxygen/classllvm_1_1Module.html#a9c362a6df0554c3d9355aadfa67a1914" class="">http://llvm.org/doxygen/classllvm_1_1Module.html#a9c362a6df0554c3d9355aadfa67a1914</a> ), do not use NULL to mark the last argument anymore. So SmallVector cannot deduct the type for NULL, which would be deducted as unsigned int instead of llvm::Type* as originally expected.</div><div class=""><br class=""></div><div class="">Best Regards,</div><div class="">Bekket<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Feb 16, 2019, at 9:44 AM, hameeza ahmed via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_quote"><div dir="ltr" class=""><div dir="ltr" class=""><div class="">Hello</div><div class="">With LLVM 4.0 my code is being compiled correctly. but with LLVM 7.0.1 I am getting following error;</div><div class=""><b class=""><br class=""></b></div><div class=""><b class="">llvm-7.0.1.src/include/llvm/IR/Module.h:356:43: error: <br class="">      no matching constructor for initialization of 'SmallVector<llvm::Type *,<br class="">      sizeof...(ArgsTy)>'<br class="">    SmallVector<Type*, sizeof...(ArgsTy)> ArgTys{Args...};<br class=""></b></div><div class=""><br class=""></div><div class="">What is the reason?</div><div class="">Due to this I am unable to do my task with LLVM7.0.1. How to solve this?<br class=""></div><div class=""><br class=""></div><div class="">Please help.</div><div class=""><br class=""></div><div class="">Thank You<br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div></div>
</div></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></div></body></html>