<html><head></head><body><div class="ydpdcb9aa74yahoo-style-wrap" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;"><span><div class="ydp6760de66yiv3018005479ydpdb0ae21yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">Hey all,</div><div class="ydp6760de66yiv3018005479ydpdb0ae21yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><br></div><div class="ydp6760de66yiv3018005479ydpdb0ae21yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">I'm new to LLVM and have been trying to run a loop analysis pass.</div><div class="ydp6760de66yiv3018005479ydpdb0ae21yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><br></div><div class="ydp6760de66yiv3018005479ydpdb0ae21yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">I'm getting this error when I build the pass:</div><div class="ydp6760de66yiv3018005479ydpdb0ae21yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><br></div><div class="ydp6760de66yiv3018005479ydpdb0ae21yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><br></div><div><i><b><span>In file included from /home/fatima/Documents/llvm5/lib/Transforms/loopcnt/loopcnt.cpp:4:</span></b></i></div><div><i><b><span></span><br></b></i></div><div><i><b><span>In file included from /home/fatima/Documents/llvm5/include/llvm/Analysis/LoopPass.h:18:</span></b></i></div><div><i><b><span></span><br></b></i></div><div><i><b><span>In file included from /home/fatima/Documents/llvm5/include/llvm/Analysis/LoopInfo.h:47:</span></b></i></div><div><i><b><span></span><br></b></i></div><div><i><b><span>In file included from /home/fatima/Documents/llvm5/include/llvm/IR/PassManager.h:46:</span></b></i></div><div><i><b><span></span><br></b></i></div><div><i><b><span>/home/fatima/Documents/llvm5/include/llvm/IR/Module.h:344:43: error: no matching</span></b></i></div><div><i><b><span></span><br></b></i></div><div><i><b><span>      constructor for initialization of 'SmallVector<llvm::Type *,</span></b></i></div><div><i><b><span></span><br></b></i></div><div><i><b><span>      sizeof...(ArgsTy)>'</span></b></i></div><div><i><b><span></span><br></b></i></div><div><i><b><span>    SmallVector<Type*, sizeof...(ArgsTy)> ArgTys{Args...};</span></b></i></div><div><i><b><span></span></b></i><br></div><div><br></div><div>I tried running it with llvm 7 and now 5 but getting the same error.</div><div><br></div></span><div><span><div>The code is from this link</div><div><br></div></span></div><div><span></span><a href="https://github.com/SharmisthaWWE/LLVM-Pass-Project---Loop-Iteration-Count" rel="nofollow" target="_blank">https://github.com/SharmisthaWWE/LLVM-Pass-Project---Loop-Iteration-Count</a></div><div><br></div><span><div><br></div><div>Thanks.</div><div><br></div><div>Regards,</div>Fatima Ahmed</span></div></body></html>