aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authoroToToT <ty1208chiang@gmail.com>2021-04-07 20:58:48 +0800
committeroToToT <ty1208chiang@gmail.com>2021-04-07 20:58:48 +0800
commitfc1117df5b875b922ec4d4417404b26abaceaf7b (patch)
treef8c434b903ed8be3a567e7548345e89b8dfb036a /clang/lib/Basic/SourceManager.cpp
parent0333ed8e0c3763e50ec0c43e289967d407c14786 (diff)
downloadllvm-fc1117df5b875b922ec4d4417404b26abaceaf7b.zip
llvm-fc1117df5b875b922ec4d4417404b26abaceaf7b.tar.gz
llvm-fc1117df5b875b922ec4d4417404b26abaceaf7b.tar.bz2
[clang] Check AuxTarget exists when creating target in CompilerInstance
D97493 separate target creation out to a single function `CompilerInstance::createTarget`. However, it would overwrite AuxTarget even if it has been set. As @kadircet recommended in D98128, this patch check the existence of AuxTarget and not overwrite it when it has been set. Reviewed By: kadircet Differential Revision: https://reviews.llvm.org/D100024
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions