Skip to content

Commit c1c5905

Browse files
Update llvm/lib/LTO/LTOBackend.cpp
Co-authored-by: Alexander Richardson <[email protected]>
1 parent 1d61381 commit c1c5905

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/lib/LTO/LTOBackend.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,7 @@ createTargetMachine(const Config &Conf, const Target *TheTarget, Module &M) {
223223

224224
TargetOptions TargetOpts = Conf.Options;
225225
if (TargetOpts.MCOptions.ABIName.empty()) {
226-
StringRef ModABI = M.getTargetABIFromMD();
227-
if (!ModABI.empty()) {
228-
TargetOpts.MCOptions.ABIName = ModABI;
229-
}
226+
TargetOpts.MCOptions.ABIName = M.getTargetABIFromMD();
230227
}
231228

232229
std::unique_ptr<TargetMachine> TM(TheTarget->createTargetMachine(

0 commit comments

Comments
 (0)