llvm中的AnalysisUsage错误

时间:2013-04-02 20:05:44

标签: llvm

当我尝试使用我的传递中的DomFrontier信息时,这就是我所得到的:

opt: /home/smriti/Thesis/llvm/include/llvm/PassAnalysisSupport.h:214:
AnalysisType && llvm::Pass::getAnalysisID(AnalysisID) const [AnalysisType = llvm::DominanceFrontier]:
Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed`

我把它放在我的传递中,它来自模块传递:

virtual void getAnalysisUsage(AnalysisUsage &AU) const {AU.addRequired<DominanceFrontier>();}

我的runOnFunction包含以下内容:

DominanceFrontier& DF = getAnalysis<DominanceFrontier>(FF);

如果我有这些问题,请告诉我?或者,如果问题出在其他地方,我应该附上通行证的全部代码吗?

0 个答案:

没有答案