Skip to content

Commit 1d61381

Browse files
committed
Address MaskRay's comment
1 parent a6e8f5d commit 1d61381

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

llvm/lib/IR/Module.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ void Module::setDarwinTargetVariantSDKVersion(VersionTuple Version) {
917917
}
918918

919919
StringRef Module::getTargetABIFromMD() {
920-
StringRef TargetABI = "";
920+
StringRef TargetABI;
921921
if (auto *TargetABIMD =
922922
dyn_cast_or_null<MDString>(getModuleFlag("target-abi")))
923923
TargetABI = TargetABIMD->getString();

llvm/lib/LTO/LTOBackend.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ createTargetMachine(const Config &Conf, const Target *TheTarget, Module &M) {
222222
CodeModel = M.getCodeModel();
223223

224224
TargetOptions TargetOpts = Conf.Options;
225-
226225
if (TargetOpts.MCOptions.ABIName.empty()) {
227226
StringRef ModABI = M.getTargetABIFromMD();
228227
if (!ModABI.empty()) {

llvm/test/LTO/RISCV/lit.local.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
if not "RISCV" in config.root.targets:
1+
if "RISCV" not in config.root.targets:
22
config.unsupported = True

llvm/test/LTO/RISCV/riscv-ilp32e.ll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
; Check that we don't crash on DataLayout incompatibility issue.
2-
;
32
; RUN: llvm-as %s -o %t.o
43
; RUN: llvm-lto2 run -r %t.o,_start %t.o -o %t.elf
54
; RUN: llvm-readobj -h %t.elf.0 | FileCheck %s --check-prefixes=CHECK
6-
;
75
; CHECK: Machine: EM_RISCV (0xF3)
86
; CHECK: EF_RISCV_RVE (0x8)
97

0 commit comments

Comments
 (0)