File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
llvm/tools/sycl-post-link Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -1060,20 +1060,17 @@ int main(int argc, char **argv) {
1060
1060
<< " -" << IROutputOnly.ArgStr << " \n " ;
1061
1061
return 1 ;
1062
1062
}
1063
+
1064
+ if (OutputFilename.getNumOccurrences () == 0 )
1065
+ OutputFilename = (Twine (sys::path::stem (InputFilename)) + " .files" ).str ();
1066
+
1063
1067
SMDiagnostic Err;
1064
1068
std::unique_ptr<Module> M = parseIRFile (InputFilename, Err, Context);
1065
- // It is OK to use raw pointer here as we control that it does not outlive M
1066
- // or objects it is moved to
1067
- Module *MPtr = M.get ();
1068
-
1069
- if (!MPtr) {
1069
+ if (!M) {
1070
1070
Err.print (argv[0 ], errs ());
1071
1071
return 1 ;
1072
1072
}
1073
1073
1074
- if (OutputFilename.getNumOccurrences () == 0 )
1075
- OutputFilename = (Twine (sys::path::stem (InputFilename)) + " .files" ).str ();
1076
-
1077
1074
TableFiles TblFiles = processInputModule (std::move (M));
1078
1075
1079
1076
// Input module was processed and a single output file was requested.
You can’t perform that action at this time.
0 commit comments