diff options
Diffstat (limited to 'llvm/unittests/Analysis/GlobalsModRefTest.cpp')
| -rw-r--r-- | llvm/unittests/Analysis/GlobalsModRefTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/Analysis/GlobalsModRefTest.cpp b/llvm/unittests/Analysis/GlobalsModRefTest.cpp index dfc8e1eea75..113d73fd84d 100644 --- a/llvm/unittests/Analysis/GlobalsModRefTest.cpp +++ b/llvm/unittests/Analysis/GlobalsModRefTest.cpp @@ -44,9 +44,10 @@ TEST(GlobalsModRef, OptNone) { Triple Trip(M->getTargetTriple()); TargetLibraryInfoImpl TLII(Trip); TargetLibraryInfo TLI(TLII); + auto GetTLI = [&TLI](Function &F) -> TargetLibraryInfo & { return TLI; }; llvm::CallGraph CG(*M); - auto AAR = GlobalsAAResult::analyzeModule(*M, TLI, CG); + auto AAR = GlobalsAAResult::analyzeModule(*M, GetTLI, CG); EXPECT_EQ(FMRB_UnknownModRefBehavior, AAR.getModRefBehavior(&F1)); EXPECT_EQ(FMRB_DoesNotAccessMemory, AAR.getModRefBehavior(&F2)); |

