[llvm] r198803 - Fix the C++03 build.
Rafael Espindola
rafael.espindola at gmail.com
Wed Jan 8 14:27:04 PST 2014
Author: rafael
Date: Wed Jan 8 16:27:04 2014
New Revision: 198803
URL: http://llvm.org/viewvc/llvm-project?rev=198803&view=rev
Log:
Fix the C++03 build.
With c++11 we never instantiate the copy constructor.
Modified:
llvm/trunk/include/llvm/Support/ErrorOr.h
Modified: llvm/trunk/include/llvm/Support/ErrorOr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ErrorOr.h?rev=198803&r1=198802&r2=198803&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ErrorOr.h (original)
+++ llvm/trunk/include/llvm/Support/ErrorOr.h Wed Jan 8 16:27:04 2014
@@ -203,7 +203,7 @@ private:
} else {
// Get other's error.
HasError = true;
- new (getErrorStorage()) error_code(Other);
+ new (getErrorStorage()) error_code(Other.getError());
}
}
More information about the llvm-commits
mailing list