[llvm-dev] SmallVector error in loop analysis pass

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[llvm-dev] SmallVector error in loop analysis pass

Alberto Barbaro via llvm-dev
Hey all,

I'm new to LLVM and have been trying to run a loop analysis pass.

I'm getting this error when I build the pass:


In file included from /home/fatima/Documents/llvm5/lib/Transforms/loopcnt/loopcnt.cpp:4:

In file included from /home/fatima/Documents/llvm5/include/llvm/Analysis/LoopPass.h:18:

In file included from /home/fatima/Documents/llvm5/include/llvm/Analysis/LoopInfo.h:47:

In file included from /home/fatima/Documents/llvm5/include/llvm/IR/PassManager.h:46:

/home/fatima/Documents/llvm5/include/llvm/IR/Module.h:344:43: error: no matching

      constructor for initialization of 'SmallVector<llvm::Type *,

      sizeof...(ArgsTy)>'

    SmallVector<Type*, sizeof...(ArgsTy)> ArgTys{Args...};


I tried running it with llvm 7 and now 5 but getting the same error.

The code is from this link



Thanks.

Regards,
Fatima Ahmed

_______________________________________________
LLVM Developers mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev