Change setDiagnosticsOutputFile to take a unique_ptr from a raw pointer (NFC)
authorMehdi Amini <mehdi.amini@apple.com>
Sat, 19 Nov 2016 18:19:41 +0000 (18:19 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Sat, 19 Nov 2016 18:19:41 +0000 (18:19 +0000)
commitb806c5ad660436db46eba99b8d26081324bc2af4
tree621f75424e3e357d2eb074ce34bd90390b9019ad
parent8a6ea813424dabc71bf4514942e487bd0268a317
Change setDiagnosticsOutputFile to take a unique_ptr from a raw pointer (NFC)

Summary:
This makes it explicit that ownership is taken. Also replace all `new`
with make_unique<> at call sites.

Reviewers: anemet

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D26884

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287449 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenAction.cpp