[clang] c5d22f4 - [clang][Sema][NFC] Make local variable const
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 23 00:23:25 PDT 2023
Author: Timm Bäder
Date: 2023-03-23T08:23:00+01:00
New Revision: c5d22f4e1866549f0d8c3aad598c0153c31679e7
URL: https://github.com/llvm/llvm-project/commit/c5d22f4e1866549f0d8c3aad598c0153c31679e7
DIFF: https://github.com/llvm/llvm-project/commit/c5d22f4e1866549f0d8c3aad598c0153c31679e7.diff
LOG: [clang][Sema][NFC] Make local variable const
Added:
Modified:
clang/lib/Sema/SemaDeclAttr.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 229e73618c53c..efa275c0aa12b 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -3759,7 +3759,7 @@ static void handleEnumExtensibilityAttr(Sema &S, Decl *D,
/// Handle __attribute__((format_arg((idx)))) attribute based on
/// http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
static void handleFormatArgAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
- Expr *IdxExpr = AL.getArgAsExpr(0);
+ const Expr *IdxExpr = AL.getArgAsExpr(0);
ParamIdx Idx;
if (!checkFunctionOrMethodParameterIndex(S, D, AL, 1, IdxExpr, Idx))
return;
More information about the cfe-commits
mailing list