Skip to content

Commit 0a2703d

Browse files
committed
fixup! [RISCV] Add searchable table for tune information
Add assertion
1 parent ed7c7ea commit 0a2703d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/RISCV/RISCVSubtarget.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ RISCVSubtarget::initializeSubtargetDependencies(const Triple &TT, StringRef CPU,
7575
// If there is no TuneInfo for this CPU, we fail back to generic.
7676
if (!TuneInfo)
7777
TuneInfo = RISCVTuneInfoTable::getRISCVTuneInfo("generic");
78+
assert(TuneInfo && "TuneInfo shouldn't be nullptr!");
7879

7980
ParseSubtargetFeatures(CPU, TuneCPU, FS);
8081
TargetABI = RISCVABI::computeTargetABI(TT, getFeatureBits(), ABIName);

0 commit comments

Comments
 (0)