[llvm] fa2f162 - [NewGVN] Properly transfer PredDep in move constructor.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 25 03:23:35 PDT 2021
Author: Florian Hahn
Date: 2021-04-25T11:22:59+01:00
New Revision: fa2f162e7659d6566db7d09749031a6e817415f8
URL: https://github.com/llvm/llvm-project/commit/fa2f162e7659d6566db7d09749031a6e817415f8
DIFF: https://github.com/llvm/llvm-project/commit/fa2f162e7659d6566db7d09749031a6e817415f8.diff
LOG: [NewGVN] Properly transfer PredDep in move constructor.
Added:
Modified:
llvm/lib/Transforms/Scalar/NewGVN.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp
index 86457b359545..5408d0df2f76 100644
--- a/llvm/lib/Transforms/Scalar/NewGVN.cpp
+++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp
@@ -679,9 +679,10 @@ class NewGVN {
: Expr(Expr), ExtraDep(ExtraDep), PredDep(PredDep) {}
ExprResult(const ExprResult &) = delete;
ExprResult(ExprResult &&Other)
- : Expr(Other.Expr), ExtraDep(Other.ExtraDep) {
+ : Expr(Other.Expr), ExtraDep(Other.ExtraDep), PredDep(Other.PredDep) {
Other.Expr = nullptr;
Other.ExtraDep = nullptr;
+ Other.PredDep = nullptr;
}
ExprResult &operator=(const ExprResult &Other) = delete;
ExprResult &operator=(ExprResult &&Other) = delete;
More information about the llvm-commits
mailing list