I am using llvm-2.6  and the ConstProp.cpp file is <a href="http://llvm.org/docs/doxygen/html/ConstantProp_8cpp_source.html">http://llvm.org/docs/doxygen/html/ConstantProp_8cpp_source.html</a><br><br>and the exact error message is:<br>

<br>llvm[0]: Compiling ConstantProp.cpp for Release build  (PIC)<br>/home/tarun/Desktop/compiler/LLVM/llvm-2.6/include/llvm/Analysis/ConstantFolding.h: In member function ‘virtual bool<unnamed>::ConstantPropagation::runOnFunction(llvm::Function&)’:<br>

/home/tarun/Desktop/compiler/LLVM/llvm-2.6/include/llvm/Analysis/ConstantFolding.h:32: error: too few arguments to function ‘llvm::Constant* llvm::ConstantFoldInstruction(llvm::Instruction*, llvm::LLVMContext&, const llvm::TargetData*)’<br>

/home/tarun/Desktop/compiler/LLVM/llvm-2.6/lib/Transforms/Hello/ConstantProp.cpp:71: error: at this point in file<br>make: *** [/home/tarun/Desktop/compiler/LLVM/build/lib/Transforms/Hello/Release/ConstantProp.o] Error 1<br>

<br><br><div class="gmail_quote">On Sun, Apr 17, 2011 at 5:48 AM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com">eli.friedman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div><div></div><div class="h5">On Sat, Apr 16, 2011 at 5:07 PM, tarun agrawal <<a href="mailto:tarun@cse.iitb.ac.in">tarun@cse.iitb.ac.in</a>> wrote:<br>
> While compiling the ConstantProp.cpp I am getting the following error.<br>
><br>
> error: too few arguments to function ‘llvm::Constant*<br>
> llvm::ConstantFoldInstruction(llvm::Instruction*, llvm::LLVMContext&, const<br>
> llvm::TargetData*)<br>
<br>
</div></div>If you're reporting a build error, please include the complete error<br>
output and the source version you're using (release version or SVN<br>
revision).<br>
<font color="#888888"><br>
-Eli<br>
</font></blockquote></div><br>