[dataflow] fix compile on gcc7
authorSam McCall <sam.mccall@gmail.com>
Thu, 29 Jun 2023 19:20:53 +0000 (21:20 +0200)
committerSam McCall <sam.mccall@gmail.com>
Thu, 29 Jun 2023 19:20:53 +0000 (21:20 +0200)
Reported on https://reviews.llvm.org/D153674
This returned expression is move-eligible, this is a bug in old GCC.

clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp

index d290872..9e48df1 100644 (file)
@@ -583,7 +583,7 @@ runTypeErasedDataflowAnalysis(
     }
   }
 
-  return BlockStates;
+  return std::move(BlockStates);
 }
 
 } // namespace dataflow