(original) (raw)

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@gmail.com> wrote:

My source code is attached here.

On Sat, Feb 16, 2019 at 10:56 PM Bekket McClane <bekket.mcclane@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 ), 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@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 sizeof...(ArgsTy)>'
SmallVector 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@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev