[clang] 2f7d30d - [dataflow] fix compile on gcc7
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 29 12:22:10 PDT 2023
Author: Sam McCall
Date: 2023-06-29T21:20:53+02:00
New Revision: 2f7d30dee8262746c3e8ee1f6f25be8c1ace9990
URL: https://github.com/llvm/llvm-project/commit/2f7d30dee8262746c3e8ee1f6f25be8c1ace9990
DIFF: https://github.com/llvm/llvm-project/commit/2f7d30dee8262746c3e8ee1f6f25be8c1ace9990.diff
LOG: [dataflow] fix compile on gcc7
Reported on https://reviews.llvm.org/D153674
This returned expression is move-eligible, this is a bug in old GCC.
Added:
Modified:
clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
Removed:
################################################################################
diff --git a/clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp b/clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
index d2908725d79b3..9e48df1b994dc 100644
--- a/clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
+++ b/clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
@@ -583,7 +583,7 @@ runTypeErasedDataflowAnalysis(
}
}
- return BlockStates;
+ return std::move(BlockStates);
}
} // namespace dataflow
More information about the cfe-commits
mailing list