Skip to content

Commit 5863fa5

Browse files
committed
Simplify.
llvm-svn: 109988
1 parent 60307d2 commit 5863fa5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/tools/driver/driver.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,6 @@ int main(int argc_, const char **argv_) {
319319
TheDriver.CCCGenericGCCName = "g++";
320320
}
321321

322-
llvm::OwningPtr<Compilation> C;
323-
324322
// Handle CC_PRINT_OPTIONS and CC_PRINT_OPTIONS_FILE.
325323
TheDriver.CCPrintOptions = !!::getenv("CC_PRINT_OPTIONS");
326324
if (TheDriver.CCPrintOptions)
@@ -351,12 +349,12 @@ int main(int argc_, const char **argv_) {
351349

352350
argv.insert(&argv[1], ExtraArgs.begin(), ExtraArgs.end());
353351
}
354-
C.reset(TheDriver.BuildCompilation(argv.size(), &argv[0]));
355352

353+
llvm::OwningPtr<Compilation> C(TheDriver.BuildCompilation(argv.size(),
354+
&argv[0]));
356355
int Res = 0;
357356
if (C.get())
358357
Res = TheDriver.ExecuteCompilation(*C);
359-
360358

361359
// If any timers were active but haven't been destroyed yet, print their
362360
// results now. This happens in -disable-free mode.

0 commit comments

Comments
 (0)