diff options
Diffstat (limited to 'llvm/unittests/Analysis/LazyCallGraphTest.cpp')
-rw-r--r-- | llvm/unittests/Analysis/LazyCallGraphTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/unittests/Analysis/LazyCallGraphTest.cpp b/llvm/unittests/Analysis/LazyCallGraphTest.cpp index 1a7bcc6..42bdcfb 100644 --- a/llvm/unittests/Analysis/LazyCallGraphTest.cpp +++ b/llvm/unittests/Analysis/LazyCallGraphTest.cpp @@ -218,7 +218,9 @@ static const char DiamondOfTrianglesRefGraph[] = static LazyCallGraph buildCG(Module &M) { TargetLibraryInfoImpl TLII(Triple(M.getTargetTriple())); TargetLibraryInfo TLI(TLII); - LazyCallGraph CG(M, TLI); + auto GetTLI = [&TLI](Function &F) -> TargetLibraryInfo & { return TLI; }; + + LazyCallGraph CG(M, GetTLI); return CG; } |