summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAhmed Charles <ahmedcharles@gmail.com>2014-03-05 05:04:00 +0000
committerAhmed Charles <ahmedcharles@gmail.com>2014-03-05 05:04:00 +0000
commitc75dc7412babbd8194e569268008df39a7644da1 (patch)
treec24c696ca91915996ddae90c2845cc97c3c7b6e0 /lib
parenta9b2552fd97acc5720799aab824f326fa85e62bb (diff)
downloadllvm-c75dc7412babbd8194e569268008df39a7644da1.tar.gz
llvm-c75dc7412babbd8194e569268008df39a7644da1.tar.bz2
llvm-c75dc7412babbd8194e569268008df39a7644da1.tar.xz
Remove unnecessary variables.
Found self-hosting clang-cl on windows. :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202935 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/Windows/Process.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Windows/Process.inc b/lib/Support/Windows/Process.inc
index a794ca08f6..a87c9e88c7 100644
--- a/lib/Support/Windows/Process.inc
+++ b/lib/Support/Windows/Process.inc
@@ -154,7 +154,7 @@ void Process::PreventCoreFiles() {
Optional<std::string> Process::GetEnv(StringRef Name) {
// Convert the argument to UTF-16 to pass it to _wgetenv().
SmallVector<wchar_t, 128> NameUTF16;
- if (error_code ec = windows::UTF8ToUTF16(Name, NameUTF16))
+ if (windows::UTF8ToUTF16(Name, NameUTF16))
return None;
// Environment variable can be encoded in non-UTF8 encoding, and there's no
@@ -175,7 +175,7 @@ Optional<std::string> Process::GetEnv(StringRef Name) {
// Convert the result from UTF-16 to UTF-8.
SmallVector<char, MAX_PATH> Res;
- if (error_code ec = windows::UTF16ToUTF8(Buf.data(), Size, Res))
+ if (windows::UTF16ToUTF8(Buf.data(), Size, Res))
return None;
return std::string(Res.data());
}