summarylogtreecommitdiffstats
path: root/llvm-39-move.patch
diff options
context:
space:
mode:
authorAaron Brodersen2016-11-27 16:39:54 -0600
committerAaron Brodersen2016-11-27 16:39:54 -0600
commita363e780fd7797ac7258cbca53517de9199ce8b9 (patch)
tree6e43c42dbda58dbf410ed5bee07d5d26a6d8da2f /llvm-39-move.patch
parent78732606b46eeb8006c51148b44a396732856d77 (diff)
downloadaur-a363e780fd7797ac7258cbca53517de9199ce8b9.tar.gz
update to 1.0.0_preview2_003177
Diffstat (limited to 'llvm-39-move.patch')
-rw-r--r--llvm-39-move.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/llvm-39-move.patch b/llvm-39-move.patch
new file mode 100644
index 000000000000..2c02d41c3f28
--- /dev/null
+++ b/llvm-39-move.patch
@@ -0,0 +1,28 @@
+From 7dfb2ed8614dea8c2fe757592436a38694e91ebc Mon Sep 17 00:00:00 2001
+From: Jan Vorlicek <janvorli@microsoft.com>
+Date: Fri, 28 Oct 2016 04:34:42 +0200
+Subject: [PATCH] Add missing std::move to one exception throw (#7865)
+
+We had the std::move missing in one of the exception throws. For some reason,
+the current clang didn't complain about it even though the copy constructor was
+deleted.
+---
+ src/vm/exceptionhandling.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/vm/exceptionhandling.cpp b/src/vm/exceptionhandling.cpp
+index e59f10e..ed155eb 100644
+--- a/src/vm/exceptionhandling.cpp
++++ b/src/vm/exceptionhandling.cpp
+@@ -4730,7 +4730,7 @@ VOID DECLSPEC_NORETURN DispatchManagedException(PAL_SEHException& ex, bool isHar
+ }
+ }
+
+- throw ex;
++ throw std::move(ex);
+ }
+
+ #ifdef _AMD64_
+--
+2.10.2
+