mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
Return a std::unique_ptr from the IRReader.h functions. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216466 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -101,8 +101,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
// Use lazy loading, since we only care about selected global values.
|
||||
SMDiagnostic Err;
|
||||
std::unique_ptr<Module> M;
|
||||
M.reset(getLazyIRFileModule(InputFilename, Err, Context));
|
||||
std::unique_ptr<Module> M = getLazyIRFileModule(InputFilename, Err, Context);
|
||||
|
||||
if (!M.get()) {
|
||||
Err.print(argv[0], errs());
|
||||
|
Reference in New Issue
Block a user