Hi<br><br>While compiling the ConstantProp.cpp I am getting the following error.<br><br>error: too few arguments to function ‘llvm::Constant* llvm::ConstantFoldInstruction(<div id=":1kg">llvm::Instruction*, llvm::LLVMContext&, const llvm::TargetData*)<br>

</div><br><br>I am using llvm-2.6  and the ConstProp.cpp file is <a href="http://llvm.org/docs/doxygen/html/ConstantProp_8cpp_source.html" target="_blank">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/<div id=":cv">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>Regards <br>Tarun<br><br><br><br></div>