From: Rafael Espindola Date: Thu, 11 Sep 2014 18:44:26 +0000 (+0000) Subject: Use the simpler sys::fs:;exists. NFC. X-Git-Tag: android-x86-7.1-r4~57624 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e257ec6e5e6cfdf16b58b69efaee9a6253564f37;p=android-x86%2Fexternal-llvm.git Use the simpler sys::fs:;exists. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217617 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-size/llvm-size.cpp b/tools/llvm-size/llvm-size.cpp index 0b0b00b05cf..1e88183df92 100644 --- a/tools/llvm-size/llvm-size.cpp +++ b/tools/llvm-size/llvm-size.cpp @@ -444,8 +444,7 @@ static bool checkMachOAndArchFlags(ObjectFile *o, StringRef file) { static void PrintFileSectionSizes(StringRef file) { // If file is not stdin, check that it exists. if (file != "-") { - bool exists; - if (sys::fs::exists(file, exists) || !exists) { + if (!sys::fs::exists(file)) { errs() << ToolName << ": '" << file << "': " << "No such file\n"; return;