summaryrefslogtreecommitdiff
path: root/gold/workqueue.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-02-23 17:42:26 +0000
committerIan Lance Taylor <ian@airs.com>2010-02-23 17:42:26 +0000
commit135b9c78b2e0da945e37dcd9e1206c6715854d44 (patch)
tree80ab95ab9ff4f534a4550257ffbbdef7a1a95cb7 /gold/workqueue.h
parente707a91d99f5c250c14bf5b9d8fdac0358bb2693 (diff)
downloadbinutils-gdb-135b9c78b2e0da945e37dcd9e1206c6715854d44.tar.gz
* gold.cc (queue_middle_tasks): If no input files were opened,
exit. * workqueue.h (Task_function::Task_function): Assert that there is a blocker.
Diffstat (limited to 'gold/workqueue.h')
-rw-r--r--gold/workqueue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/workqueue.h b/gold/workqueue.h
index 75452241d80..9121e10e14f 100644
--- a/gold/workqueue.h
+++ b/gold/workqueue.h
@@ -152,7 +152,7 @@ class Task_function : public Task
Task_function(Task_function_runner* runner, Task_token* blocker,
const char* name)
: runner_(runner), blocker_(blocker), name_(name)
- { }
+ { gold_assert(blocker != NULL); }
~Task_function()
{