@@ -132,16 +132,16 @@ private:
132132
133133 TaskProcessInformation TPI (T->PI .Pid , UTime, STime,
134134 Counters.PeakWorkingSetSize );
135- bool ErrorOccured = false ;
135+ bool ErrorOccurred = false ;
136136 if (Crashed) {
137137 if (Cbs.TaskSignalled ) {
138138 TaskFinishedResponse Response =
139139 Cbs.TaskSignalled (T->PI .Pid , " " , StdoutContents, StderrContents,
140140 T->Context , T->PI .ReturnCode , TPI);
141- ErrorOccured = (Response == TaskFinishedResponse::StopExecution);
141+ ErrorOccurred = (Response == TaskFinishedResponse::StopExecution);
142142 } else {
143143 // If we don't have a Signalled callback, unconditionally stop.
144- ErrorOccured = true ;
144+ ErrorOccurred = true ;
145145 }
146146 } else {
147147 // Wait() returned a normal return code, so just indicate that the task
@@ -150,15 +150,15 @@ private:
150150 TaskFinishedResponse Response =
151151 Cbs.TaskFinished (T->PI .Pid , T->PI .ReturnCode , StdoutContents,
152152 StderrContents, TPI, T->Context );
153- ErrorOccured = (Response == TaskFinishedResponse::StopExecution);
153+ ErrorOccurred = (Response == TaskFinishedResponse::StopExecution);
154154 } else if (Crashed) {
155- ErrorOccured = true ;
155+ ErrorOccurred = true ;
156156 }
157157 }
158158 llvm::sys::fs::remove (T->StdoutPath );
159159 if (T->SeparateErrors )
160160 llvm::sys::fs::remove (T->StderrPath );
161- return ErrorOccured ;
161+ return ErrorOccurred ;
162162 }
163163
164164public:
@@ -171,14 +171,14 @@ public:
171171 // / Run the tasks to be executed.
172172 // / \return true on error.
173173 bool executeTasks () {
174- bool ErrorOccured = false ;
175- while ((!ErrorOccured && !TasksToBeExecuted.empty ()) ||
174+ bool ErrorOccurred = false ;
175+ while ((!ErrorOccurred && !TasksToBeExecuted.empty ()) ||
176176 !TasksBeingExecuted.empty ()) {
177- if (!ErrorOccured )
178- ErrorOccured |= startUpSomeTasks ();
179- ErrorOccured |= waitForFinishedTask ();
177+ if (!ErrorOccurred )
178+ ErrorOccurred |= startUpSomeTasks ();
179+ ErrorOccurred |= waitForFinishedTask ();
180180 }
181- return ErrorOccured ;
181+ return ErrorOccurred ;
182182 }
183183};
184184
0 commit comments