aboutsummaryrefslogtreecommitdiff
path: root/gold/fileread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/fileread.cc')
-rw-r--r--gold/fileread.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/fileread.cc b/gold/fileread.cc
index e476194..8c2f8f3 100644
--- a/gold/fileread.cc
+++ b/gold/fileread.cc
@@ -121,9 +121,9 @@ File_read::open(const Task* task, const std::string& name)
this->size_ = s.st_size;
gold_debug(DEBUG_FILES, "Attempt to open %s succeeded",
this->name_.c_str());
- }
- this->token_.add_writer(task);
+ this->token_.add_writer(task);
+ }
return this->descriptor_ >= 0;
}