[dataflow] fix test after conflict between ae54f01dd8c53d1 & f2123af1e7d75
authorSam McCall <sam.mccall@gmail.com>
Mon, 26 Jun 2023 14:29:47 +0000 (16:29 +0200)
committerSam McCall <sam.mccall@gmail.com>
Mon, 26 Jun 2023 14:29:47 +0000 (16:29 +0200)
clang/unittests/Analysis/FlowSensitive/RecordOpsTest.cpp

index f0f7a5e..a89011e 100644 (file)
@@ -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");