projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f85144
)
Remove an "else" that snuck in after a "return" ;)
author
Kaelyn Uhrain
<rikka@google.com>
Wed, 20 Jun 2012 20:38:36 +0000
(20:38 +0000)
committer
Kaelyn Uhrain
<rikka@google.com>
Wed, 20 Jun 2012 20:38:36 +0000
(20:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158844
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/MemoryBuffer.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/MemoryBuffer.cpp
b/lib/Support/MemoryBuffer.cpp
index fabf1406acbdb3c0e90b9a85cb67add0b36578c8..37377061aa26a5824731050408ff2e86b17080ef 100644
(file)
--- 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;