hameeza ahmed via llvm-dev
2019-Jan-17 05:26 UTC
[llvm-dev] LLVM 7.0.1 Error no matching constructor for initialization of SmallVector
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? Please help. Thank You -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190117/1d59d404/attachment.html>
hameeza ahmed via llvm-dev
2019-Feb-16 17:44 UTC
[llvm-dev] LLVM 7.0.1 Error no matching constructor for initialization of SmallVector
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190216/9f7e43a5/attachment.html>
Bekket McClane via llvm-dev
2019-Feb-16 17:56 UTC
[llvm-dev] LLVM 7.0.1 Error no matching constructor for initialization of SmallVector
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/classllvm_1_1Module.html#a9c362a6df0554c3d9355aadfa67a1914 <http://llvm.org/doxygen/classllvm_1_1Module.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> 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 > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190216/b155865a/attachment.html>
Bekket McClane via llvm-dev
2019-Feb-16 18:13 UTC
[llvm-dev] LLVM 7.0.1 Error no matching constructor for initialization of SmallVector
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/classllvm_1_1Module.html#a9c362a6df0554c3d9355aadfa67a1914 <http://llvm.org/doxygen/classllvm_1_1Module.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>
Reasonably Related Threads
- [CommandLine] Missing clEnumValEnd for cl::values in tutorial page
- [CommandLine] Missing clEnumValEnd for cl::values in tutorial page
- Third-party libraries policy
- Question about Instruction Selection
- [RFC] Parallelizing (Target-Independent) Instruction Selection