diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-08-15 19:16:27 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-08-15 19:16:27 +0000 |
commit | 118f194966d20460c2b1653e06c601e4b66c9b3f (patch) | |
tree | 7cd858dd691de34a618b027832740df1bd05a5ca /lib | |
parent | 1ebd25e438444ae80ec3d9504fe2173b8306501d (diff) | |
download | external_llvm-118f194966d20460c2b1653e06c601e4b66c9b3f.zip external_llvm-118f194966d20460c2b1653e06c601e4b66c9b3f.tar.gz external_llvm-118f194966d20460c2b1653e06c601e4b66c9b3f.tar.bz2 |
Properly test the LLVM_USE_RVALUE_REFERENCES macro.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Support/Unix/PathV2.inc | 2 | ||||
-rw-r--r-- | lib/Support/Windows/PathV2.inc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Unix/PathV2.inc b/lib/Support/Unix/PathV2.inc index 3bb38f6..d04f590 100644 --- a/lib/Support/Unix/PathV2.inc +++ b/lib/Support/Unix/PathV2.inc @@ -545,7 +545,7 @@ mapped_file_region::~mapped_file_region() { ::munmap(Mapping, Size); } -#ifdef LLVM_USE_RVALUE_REFERENCES +#if LLVM_USE_RVALUE_REFERENCES mapped_file_region::mapped_file_region(mapped_file_region &&other) : Mode(other.Mode), Size(other.Size), Mapping(other.Mapping) { other.Mapping = 0; diff --git a/lib/Support/Windows/PathV2.inc b/lib/Support/Windows/PathV2.inc index 23f42aa..696768b 100644 --- a/lib/Support/Windows/PathV2.inc +++ b/lib/Support/Windows/PathV2.inc @@ -861,7 +861,7 @@ mapped_file_region::~mapped_file_region() { ::CloseHandle(FileHandle); } -#ifdef LLVM_USE_RVALUE_REFERENCES +#if LLVM_USE_RVALUE_REFERENCES mapped_file_region::mapped_file_region(mapped_file_region &&other) : Mode(other.Mode) , Size(other.Size) |