<div dir="ltr">Hi Sir,<div><br></div><div>I am trying to do a<b> </b>Pointer Analysis Program for that I have to make PADriver to get PADriver.so but while making I faced following Errors. Please Help me.</div><div><br></div>
<div>Error I faced ::</div><div><br></div><div>__________________________________________________________________</div><div><div>llvm[0]: Compiling PADriver.cpp for Debug+Asserts build (PIC)</div><div>/home/admini/llvm/llvm-3.4/lib/Transforms/PADriver/PADriver.cpp:469:9: error: </div>
<div>      no viable conversion from 'llvm::Use' to 'llvm::User *'</div><div>                User *U = *UI;</div><div>                      ^   ~~~</div><div>/home/admini/llvm/build/include/llvm/Use.h:94:3: note: candidate function</div>
<div>  operator Value *() const { return Val; }</div><div>  ^</div><div>/home/admini/llvm/llvm-3.4/lib/Transforms/PADriver/PADriver.cpp:475:11: error: </div><div>      no matching member function for call to 'isCallee'</div>
<div>                if (!CS.isCallee(UI))</div><div>                     ~~~^~~~~~~~</div><div>/home/admini/llvm/build/include/llvm/Support/CallSite.h:106:8: note: candidate</div><div>      function not viable: no known conversion from 'Value::use_iterator' (aka</div>
<div>      'use_iterator_impl<llvm::Use>') to 'Value::const_user_iterator' (aka</div><div>      'user_iterator_impl<const llvm::User>') for 1st argument</div><div>  bool isCallee(Value::const_user_iterator UI) const {</div>
<div>       ^</div><div>/home/admini/llvm/build/include/llvm/Support/CallSite.h:111:8: note: candidate</div><div>      function not viable: no known conversion from 'Value::use_iterator' (aka</div><div>      'use_iterator_impl<llvm::Use>') to 'const llvm::Use *' for 1st argument</div>
<div>  bool isCallee(const Use *U) const { return getCallee() == U; }</div><div>       ^</div><div>/home/admini/llvm/llvm-3.4/lib/Transforms/PADriver/PADriver.cpp:513:20: error: </div><div>      no matching member function for call to 'isCallee'</div>
<div>                if (!Call || !CS.isCallee(UI)) continue;</div><div>                              ~~~^~~~~~~~</div><div>/home/admini/llvm/build/include/llvm/Support/CallSite.h:106:8: note: candidate</div><div>      function not viable: no known conversion from 'Value::use_iterator' (aka</div>
<div>      'use_iterator_impl<llvm::Use>') to 'Value::const_user_iterator' (aka</div><div>      'user_iterator_impl<const llvm::User>') for 1st argument</div><div>  bool isCallee(Value::const_user_iterator UI) const {</div>
<div>       ^</div><div>/home/admini/llvm/build/include/llvm/Support/CallSite.h:111:8: note: candidate</div><div>      function not viable: no known conversion from 'Value::use_iterator' (aka</div><div>      'use_iterator_impl<llvm::Use>') to 'const llvm::Use *' for 1st argument</div>
<div>  bool isCallee(const Use *U) const { return getCallee() == U; }</div><div>       ^</div><div>3 errors generated.</div><div>make: *** [/home/admini/llvm/build/lib/Transforms/PADriver/Debug+Asserts/PADriver.o] Error 1</div>
</div><div>_____________________________________________________________________</div><div><br></div><div>-Thanks,</div><div>YOGESH C</div></div>