[cfe-users] Error in llvm/User.h and llvm/value.h

Madhvi Gupta madhvig at iiitd.ac.in
Tue Jun 17 04:51:07 PDT 2014


Dear All,

I am trying to some basic stuff in llvm. For which I have included header
files #include "llvm/Pass.h"
#include "llvm/IR/Function.h"
#include "llvm/BasicBlock.h"
#include "llvm/Support/raw_ostream.h"


And I got the error
iiitd at iiitd-HP-Compaq-dx7400-Microtower:~/llvm-3.4/lib/Transforms/FaintVariable$
make
llvm[0]: Compiling dataflow.cpp for Release+Asserts build (PIC)
In file included from dataflow.cpp:3:
In file included from /usr/local/include/llvm/BasicBlock.h:17:
In file included from /usr/local/include/llvm/Instruction.h:18:
In file included from /usr/local/include/llvm/User.h:23:
In file included from /usr/local/include/llvm/Value.h:17:
/usr/local/include/llvm/Use.h:42:7: error: redefinition of
      'llvm::PointerLikeTypeTraits<llvm::Use **>'
class PointerLikeTypeTraits<Use**> {
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/iiitd/llvm-3.4/include/llvm/IR/Use.h:45:7: note: previous definition
is
      here
class PointerLikeTypeTraits<Use**> {


If anyone of you can help in resolving the error that I m getting.

Thanks,
Madhvi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20140617/52e2a9b4/attachment.html>


More information about the cfe-users mailing list