llvm icon indicating copy to clipboard operation
llvm copied to clipboard

error occured when i building the asst3

Open pzz2011 opened this issue 8 years ago • 0 comments

I am using the llvm3.7 here. And the error is the following:

In file included from LoopInvariantCodeMotion.cpp:12: In file included from /usr/local/include/llvm/Pass.h:378: /usr/local/include/llvm/PassAnalysisSupport.h:55:37: error: no member named 'ID' in 'llvm::LoopInfo' return addRequiredID(PassClass::ID); ^ LoopInvariantCodeMotion.cpp:56:7: note: in instantiation of function template specialization 'llvm::AnalysisUsage::addRequiredllvm::LoopInfo' requested here AU.addRequired<LoopInfo>(); ^ In file included from LoopInvariantCodeMotion.cpp:12: In file included from /usr/local/include/llvm/Pass.h:378: /usr/local/include/llvm/PassAnalysisSupport.h:198:53: error: no member named 'ID' in 'llvm::LoopInfo' return getAnalysisID<AnalysisType>(&AnalysisType::ID); ~~~~~~~~~~~~~~^ LoopInvariantCodeMotion.cpp:72:19: note: in instantiation of function template specialization 'llvm::Pass::getAnalysisllvm::LoopInfo' requested here LoopInfo& LI = getAnalysis<LoopInfo>(); ^ 4 warnings and 2 errors generated. : recipe for target 'LoopInvariantCodeMotion.o' failed make: *** [LoopInvariantCodeMotion.o] Error 1

Any advice will be helpful, hope to see your reply, thanks.

pzz2011 avatar Jun 29 '16 03:06 pzz2011