]> granicus.if.org Git - clang/commit
Use Optional instead of unique_ptr; NFC
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Sun, 5 Aug 2018 01:37:07 +0000 (01:37 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Sun, 5 Aug 2018 01:37:07 +0000 (01:37 +0000)
commit511ebf497e0ff495c2abbccc17ff8b40b0391052
treec333727c2c6a220ae5dc0cae719138a29b0a81cc
parentb2fdd93270cd584770bbfef8fba106616888003c
Use Optional instead of unique_ptr; NFC

Looks like the only reason we use a unique_ptr here is so that we can
conditionally construct a LogicalErrorHandler. It's a small type, and
Optional can do the same thing with 100% fewer heap allocations.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338962 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/AnalysisBasedWarnings.cpp