mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-16 21:03:14 +01:00
Merge branch 'master' into merge-2.064
This commit is contained in:
@@ -465,7 +465,8 @@ bool GarbageCollect2Stack::runOnFunction(Function &F) {
|
||||
#endif
|
||||
DominatorTree& DT = getAnalysis<DominatorTree>();
|
||||
#if LDC_LLVM_VER >= 305
|
||||
CallGraph* CG = &getAnalysisIfAvailable<CallGraphWrapperPass>()->getCallGraph();
|
||||
CallGraphWrapperPass* CGPass = getAnalysisIfAvailable<CallGraphWrapperPass>();
|
||||
CallGraph* CG = CGPass ? &CGPass->getCallGraph() : 0;
|
||||
#else
|
||||
CallGraph* CG = getAnalysisIfAvailable<CallGraph>();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user