diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2015-08-25 23:08:51 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2015-08-25 23:08:51 +0000 |
| commit | 1ab47ef7598aae1476871cd8e972786f2742fd40 (patch) | |
| tree | 9d3e348de79ce444120ed5484b941a827fa858f4 /devel/llvm36/files/patch-include__llvm__IR__PassManager.h | |
| parent | devel/premake4 is not jobs safe (diff) | |
Fix pessimizing moves in devel/llvm36, for the benefit of other ports
PR: 202596
Submitted by: dim
Diffstat (limited to 'devel/llvm36/files/patch-include__llvm__IR__PassManager.h')
| -rw-r--r-- | devel/llvm36/files/patch-include__llvm__IR__PassManager.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/llvm36/files/patch-include__llvm__IR__PassManager.h b/devel/llvm36/files/patch-include__llvm__IR__PassManager.h new file mode 100644 index 000000000000..ae890f16f866 --- /dev/null +++ b/devel/llvm36/files/patch-include__llvm__IR__PassManager.h @@ -0,0 +1,20 @@ +--- include/llvm/IR/PassManager.h.orig 2015-01-13 23:42:38.000000000 +0100 ++++ include/llvm/IR/PassManager.h 2015-08-23 18:33:44.006587000 +0200 +@@ -502,7 +502,7 @@ private: + PreservedAnalyses invalidateImpl(IRUnitT &IR, PreservedAnalyses PA) { + // Short circuit for a common case of all analyses being preserved. + if (PA.areAllPreserved()) +- return std::move(PA); ++ return PA; + + if (DebugLogging) + dbgs() << "Invalidating all non-preserved analyses for: " +@@ -542,7 +542,7 @@ private: + if (ResultsList.empty()) + AnalysisResultLists.erase(&IR); + +- return std::move(PA); ++ return PA; + } + + /// \brief List of function analysis pass IDs and associated concept pointers. |
