Skip to content

Commit 170dbe1

Browse files
tangaacSixWeining
andauthored
Update llvm/lib/TargetParser/Host.cpp
Co-authored-by: Lu Weining <[email protected]>
1 parent 020c29c commit 170dbe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/TargetParser/Host.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2011,7 +2011,7 @@ const StringMap<bool> sys::getHostCPUFeatures() {
20112011
const StringMap<bool> sys::getHostCPUFeatures() {
20122012
unsigned long hwcap = getauxval(AT_HWCAP);
20132013
bool HasFPU = hwcap & (1UL << 3); // HWCAP_LOONGARCH_FPU
2014-
uint32_t cpucfg2 = 0x2, cpucfg3 = 0x3;
2014+
const uint32_t cpucfg2 = 0x2, cpucfg3 = 0x3;
20152015
__asm__("cpucfg %[cpucfg2], %[cpucfg2]\n\t" : [cpucfg2] "+r"(cpucfg2));
20162016
__asm__("cpucfg %[cpucfg3], %[cpucfg3]\n\t" : [cpucfg3] "+r"(cpucfg3));
20172017

0 commit comments

Comments
 (0)