================
@@ -111,9 +115,51 @@ void RISCVABIInfo::appendAttributeMangling(StringRef 
AttrStr,
 }
 
 void RISCVABIInfo::computeInfo(CGFunctionInfo &FI) const {
+  unsigned ABIVLen;
+  switch (FI.getExtInfo().getCC()) {
+  default:
+    ABIVLen = 1;
----------------
kito-cheng wrote:

Always use ABIVLen = 0 to represent it's disabled? I saw some other place use 
0, but here use 1, which introduce magic constant, and also inconsistent 

https://github.com/llvm/llvm-project/pull/100346
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to