]> granicus.if.org Git - clang/commitdiff
Update cc1as_main for MCAsmBackend ownership change in r315410.
authorLang Hames <lhames@gmail.com>
Wed, 11 Oct 2017 01:58:08 +0000 (01:58 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 11 Oct 2017 01:58:08 +0000 (01:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315411 91177308-0d34-0410-b5e6-96231b3b80d8

tools/driver/cc1as_main.cpp

index 1d130d186edfdbe466a91c74df82fc8501d94fe8..64bb0c62a43ff9476569b0229321def32c39f6c1 100644 (file)
@@ -419,8 +419,8 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts,
                                                       Opts.CPU, Options);
     Triple T(Opts.Triple);
     Str.reset(TheTarget->createMCObjectStreamer(
-        T, Ctx, *MAB, *Out, CE, *STI, Opts.RelaxAll,
-        Opts.IncrementalLinkerCompatible,
+        T, Ctx, std::unique_ptr<MCAsmBackend>(MAB), *Out, CE, *STI,
+        Opts.RelaxAll, Opts.IncrementalLinkerCompatible,
         /*DWARFMustBeAtTheEnd*/ true));
     Str.get()->InitSections(Opts.NoExecStack);
   }