Skip to content

Commit 8afe59f

Browse files
committed
marchid and mimplid can be 0
Created using spr 1.3.6-beta.1
1 parent 2bb2d50 commit 8afe59f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/TargetParser/RISCVTargetParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ bool hasFastVectorUnalignedAccess(StringRef CPU) {
7373

7474
bool hasValidCPUModel(StringRef CPU) {
7575
const CPUInfo *Info = getCPUInfoByName(CPU);
76-
return Info && Info->MVendorID && Info->MArchID && Info->MImpID;
76+
return Info && Info->MVendorID;
7777
}
7878

7979
uint32_t getVendorID(StringRef CPU) {

0 commit comments

Comments
 (0)