================
@@ -430,8 +430,14 @@ class Sema;
       if (!ReferenceBinding) {
 #ifndef NDEBUG
         auto Decay = [&](QualType T) {
-          return (T->isArrayType() || T->isFunctionType()) ? 
C.getDecayedType(T)
-                                                           : T;
+          T = (T->isArrayType() || T->isFunctionType()) ? C.getDecayedType(T)
----------------
alexfh wrote:

Since it's not a single expression any more, a simple `if` would be a bit nicer 
here, IMO.

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

Reply via email to