[clang] 9fc890b - [clang][Parse][NFC] Make a local variable const
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 24 07:18:54 PST 2024
Author: Timm Bäder
Date: 2024-01-24T16:18:39+01:00
New Revision: 9fc890b5a06c5e4a014951a1dd7ad7ba592ceaaf
URL: https://github.com/llvm/llvm-project/commit/9fc890b5a06c5e4a014951a1dd7ad7ba592ceaaf
DIFF: https://github.com/llvm/llvm-project/commit/9fc890b5a06c5e4a014951a1dd7ad7ba592ceaaf.diff
LOG: [clang][Parse][NFC] Make a local variable const
Added:
Modified:
clang/lib/Parse/ParseDeclCXX.cpp
Removed:
################################################################################
diff --git a/clang/lib/Parse/ParseDeclCXX.cpp b/clang/lib/Parse/ParseDeclCXX.cpp
index c0d771dc93daeec..ea79917cfc8e9e1 100644
--- a/clang/lib/Parse/ParseDeclCXX.cpp
+++ b/clang/lib/Parse/ParseDeclCXX.cpp
@@ -2404,7 +2404,7 @@ VirtSpecifiers::Specifier Parser::isCXX11VirtSpecifier(const Token &Tok) const {
if (!getLangOpts().CPlusPlus || Tok.isNot(tok::identifier))
return VirtSpecifiers::VS_None;
- IdentifierInfo *II = Tok.getIdentifierInfo();
+ const IdentifierInfo *II = Tok.getIdentifierInfo();
// Initialize the contextual keywords.
if (!Ident_final) {
More information about the cfe-commits
mailing list