[NFC] Refactor ExecuteAssembler in cc1as_main.cpp
authorScott Linder <Scott.Linder@amd.com>
Fri, 30 Apr 2021 17:06:48 +0000 (17:06 +0000)
committerScott Linder <Scott.Linder@amd.com>
Fri, 30 Apr 2021 17:11:50 +0000 (17:11 +0000)
commitcab19d84ce85cbceec7fde515cc686d6a83a5f9d
tree013fe9c38d5074ef9efa9349480daed506d3bd26
parent5596bc40e6d569ff068aa58ec44ca4a86abd39d8
[NFC] Refactor ExecuteAssembler in cc1as_main.cpp

Introduce an extra scope (another static function) to replace calls to
`unique_ptr::reset` with implicit destructors via RAII.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D101542
clang/tools/driver/cc1as_main.cpp