Author: Sam McCall Date: 2023-06-26T16:29:47+02:00 New Revision: 1adc5a781faaa09ffb25b585fbf6599dc01f31c9
URL: https://github.com/llvm/llvm-project/commit/1adc5a781faaa09ffb25b585fbf6599dc01f31c9 DIFF: https://github.com/llvm/llvm-project/commit/1adc5a781faaa09ffb25b585fbf6599dc01f31c9.diff LOG: [dataflow] fix test after conflict between ae54f01dd8c53d1 & f2123af1e7d75 Added: Modified: clang/unittests/Analysis/FlowSensitive/RecordOpsTest.cpp Removed: ################################################################################ diff --git a/clang/unittests/Analysis/FlowSensitive/RecordOpsTest.cpp b/clang/unittests/Analysis/FlowSensitive/RecordOpsTest.cpp index f0f7a5e225800..a89011e423cd2 100644 --- a/clang/unittests/Analysis/FlowSensitive/RecordOpsTest.cpp +++ b/clang/unittests/Analysis/FlowSensitive/RecordOpsTest.cpp @@ -47,7 +47,7 @@ TEST(RecordOpsTest, CopyRecord) { Code, [](const llvm::StringMap<DataflowAnalysisState<NoopLattice>> &Results, ASTContext &ASTCtx) { - Environment Env = getEnvironmentAtAnnotation(Results, "p"); + Environment Env = getEnvironmentAtAnnotation(Results, "p").fork(); const ValueDecl *OuterIntDecl = findValueDecl(ASTCtx, "outer_int"); const ValueDecl *RefDecl = findValueDecl(ASTCtx, "ref"); @@ -109,7 +109,7 @@ TEST(RecordOpsTest, RecordsEqual) { Code, [](const llvm::StringMap<DataflowAnalysisState<NoopLattice>> &Results, ASTContext &ASTCtx) { - Environment Env = getEnvironmentAtAnnotation(Results, "p"); + Environment Env = getEnvironmentAtAnnotation(Results, "p").fork(); const ValueDecl *OuterIntDecl = findValueDecl(ASTCtx, "outer_int"); const ValueDecl *RefDecl = findValueDecl(ASTCtx, "ref"); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits