SmallVector error in loop analysis pass

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

https://github.com/SharmisthaWWE/LLVM-Pass-Project—Loop-Iteration-Count

Thanks.

Regards,
Fatima Ahmed