(original) (raw)

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🔞

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

sizeof...(ArgsTy)>'

SmallVector 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