From: Rafael Espindola Date: Thu, 12 Jun 2014 21:53:57 +0000 (+0000) Subject: Try to fix the windows build. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=647ab7f728681b0ab9800f6feacdc29afa7a517c;p=oota-llvm.git Try to fix the windows build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210837 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Windows/DynamicLibrary.inc b/lib/Support/Windows/DynamicLibrary.inc index 5d0278fe3c3..5ed0b709fa6 100644 --- a/lib/Support/Windows/DynamicLibrary.inc +++ b/lib/Support/Windows/DynamicLibrary.inc @@ -85,7 +85,7 @@ DynamicLibrary DynamicLibrary::getPermanentLibrary(const char *filename, } SmallVector filenameUnicode; - if (error_code ec = windows::UTF8ToUTF16(filename, filenameUnicode)) { + if (std::error_code ec = windows::UTF8ToUTF16(filename, filenameUnicode)) { SetLastError(ec.value()); MakeErrMsg(errMsg, std::string(filename) + ": Can't convert to UTF-16: "); return DynamicLibrary();