File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -319,8 +319,6 @@ int main(int argc_, const char **argv_) {
319
319
TheDriver.CCCGenericGCCName = " g++" ;
320
320
}
321
321
322
- llvm::OwningPtr<Compilation> C;
323
-
324
322
// Handle CC_PRINT_OPTIONS and CC_PRINT_OPTIONS_FILE.
325
323
TheDriver.CCPrintOptions = !!::getenv (" CC_PRINT_OPTIONS" );
326
324
if (TheDriver.CCPrintOptions )
@@ -351,12 +349,12 @@ int main(int argc_, const char **argv_) {
351
349
352
350
argv.insert (&argv[1 ], ExtraArgs.begin (), ExtraArgs.end ());
353
351
}
354
- C.reset (TheDriver.BuildCompilation (argv.size (), &argv[0 ]));
355
352
353
+ llvm::OwningPtr<Compilation> C (TheDriver.BuildCompilation (argv.size (),
354
+ &argv[0 ]));
356
355
int Res = 0 ;
357
356
if (C.get ())
358
357
Res = TheDriver.ExecuteCompilation (*C);
359
-
360
358
361
359
// If any timers were active but haven't been destroyed yet, print their
362
360
// results now. This happens in -disable-free mode.
You can’t perform that action at this time.
0 commit comments