[clang] 282d475 - [clang] change `auto` to `Expr` in last commit [NFC]
    YingChi Long via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu Aug  4 06:17:39 PDT 2022
    
    
  
Author: YingChi Long
Date: 2022-08-04T21:15:45+08:00
New Revision: 282d4755c37ced7c2b36526d79033c5c76a006a8
URL: https://github.com/llvm/llvm-project/commit/282d4755c37ced7c2b36526d79033c5c76a006a8
DIFF: https://github.com/llvm/llvm-project/commit/282d4755c37ced7c2b36526d79033c5c76a006a8.diff
LOG: [clang] change `auto` to `Expr` in last commit [NFC]
Added: 
    
Modified: 
    clang/lib/Sema/SemaChecking.cpp
Removed: 
    
################################################################################
diff  --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index 6428be13f061..d71114e33f31 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -8716,7 +8716,7 @@ checkFormatStringExpr(Sema &S, const Expr *E, ArrayRef<const Expr *> Args,
         }
       }
     }
-    if (const auto *SLE = maybeConstEvalStringLiteral(S.Context, E))
+    if (const Expr *SLE = maybeConstEvalStringLiteral(S.Context, E))
       return checkFormatStringExpr(S, SLE, Args, APK, format_idx, firstDataArg,
                                    Type, CallType, /*InFunctionCall*/ false,
                                    CheckedVarArgs, UncoveredArg, Offset,
        
    
    
More information about the cfe-commits
mailing list