[llvm] r211709 - Fix = delete in MSVC build from r211705
JF Bastien
jfb at google.com
Wed Jun 25 08:38:02 PDT 2014
Author: jfb
Date: Wed Jun 25 10:38:02 2014
New Revision: 211709
URL: http://llvm.org/viewvc/llvm-project?rev=211709&view=rev
Log:
Fix = delete in MSVC build from r211705
MSVC doesn't support = delete yet, use LLVM_DELETED_FUNCTION instead.
Related to: http://reviews.llvm.org/D3390
Modified:
llvm/trunk/include/llvm/Support/RandomNumberGenerator.h
Modified: llvm/trunk/include/llvm/Support/RandomNumberGenerator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/RandomNumberGenerator.h?rev=211709&r1=211708&r2=211709&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/RandomNumberGenerator.h (original)
+++ llvm/trunk/include/llvm/Support/RandomNumberGenerator.h Wed Jun 25 10:38:02 2014
@@ -46,8 +46,10 @@ private:
std::mt19937_64 Generator;
// Noncopyable.
- RandomNumberGenerator(const RandomNumberGenerator &other) = delete;
- RandomNumberGenerator &operator=(const RandomNumberGenerator &other) = delete;
+ RandomNumberGenerator(const RandomNumberGenerator &other)
+ LLVM_DELETED_FUNCTION;
+ RandomNumberGenerator &
+ operator=(const RandomNumberGenerator &other) LLVM_DELETED_FUNCTION;
};
}
More information about the llvm-commits
mailing list