[llvm-dev] LLVM 7.0.1 Error no matching constructor for initialization of SmallVector (original) (raw)

Bekket McClane via llvm-dev llvm-dev at lists.llvm.org
Sat Feb 16 10:13:46 PST 2019


Hi,

Yes I think the source code confirm my assumption in my last email: the Module::getOrInsertFunction in line 53 shouldn’t use NULL to terminate the var-args list anymore.

B.R. Bekket

On Feb 16, 2019, at 5:08 AM, hameeza ahmed <hahmed2305 at gmail.com> wrote:

My source code is attached here. On Sat, Feb 16, 2019 at 10:56 PM Bekket McClane <bekket.mcclane at gmail.com <mailto:bekket.mcclane at gmail.com>> wrote: Hi, It would be great if you can attach your source code and complete error message. But one of the possible reasons might be some API with var-args, Module::getOrInsertFunction for example(http://llvm.org/doxygen/classllvm11Module.html#a9c362a6df0554c3d9355aadfa67a1914 <http://llvm.org/doxygen/classllvm11Module.html#a9c362a6df0554c3d9355aadfa67a1914> ), 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. Best Regards, Bekket

On Feb 16, 2019, at 9:44 AM, hameeza ahmed via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:

Hello With LLVM 4.0 my code is being compiled correctly. but with LLVM 7.0.1 I am getting following error; llvm-7.0.1.src/include/llvm/IR/Module.h:356:43: error: no matching constructor for initialization of 'SmallVector<llvm::Type *,_ _sizeof...(ArgsTy)>' SmallVector<Type*, sizeof...(ArgsTy)> ArgTys{Args...}; What is the reason? Due to this I am unable to do my task with LLVM7.0.1. How to solve this? Please help. Thank You


LLVM Developers mailing list llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev <https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev> <Dynamic-BB.cpp>

-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190216/cbe9ae58/attachment.html>



More information about the llvm-dev mailing list