aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/MemoryBuffer.cpp
diff options
context:
space:
mode:
authorKaelyn Uhrain <rikka@google.com>2012-06-20 20:38:36 +0000
committerKaelyn Uhrain <rikka@google.com>2012-06-20 20:38:36 +0000
commit3aaa59bcbb226499cd4743a42e919d3bdc24aa42 (patch)
treecc4e36ea478e64cb57650bfcab385822eea3c3c4 /lib/Support/MemoryBuffer.cpp
parent3f85144a8958ef2365e7a145859a26f870ba8445 (diff)
Remove an "else" that snuck in after a "return" ;)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158844 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/MemoryBuffer.cpp')
-rw-r--r--lib/Support/MemoryBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/MemoryBuffer.cpp b/lib/Support/MemoryBuffer.cpp
index fabf1406ac..37377061aa 100644
--- a/lib/Support/MemoryBuffer.cpp
+++ b/lib/Support/MemoryBuffer.cpp
@@ -220,7 +220,7 @@ error_code MemoryBuffer::getFile(const char *Filename,
error_code err = sys::fs::is_directory(Filename, is_dir);
if (err)
return err;
- else if (is_dir)
+ if (is_dir)
return make_error_code(errc::is_a_directory);
int OpenFlags = O_RDONLY;