Skip to content

Commit 0e88278

Browse files
committed
Revert last change
Created using spr 1.3.6-beta.1
1 parent 8afe59f commit 0e88278

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;
76+
return Info && Info->MVendorID && Info->MArchID && Info->MImpID;
7777
}
7878

7979
uint32_t getVendorID(StringRef CPU) {

0 commit comments

Comments
 (0)