File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2041,10 +2041,10 @@ ConstantLValueEmitter::tryEmitBase(const APValue::LValueBase &base) {
2041
2041
return ConstantLValue (C);
2042
2042
};
2043
2043
2044
- if (auto FD = dyn_cast<FunctionDecl>(D))
2044
+ if (const auto * FD = dyn_cast<FunctionDecl>(D))
2045
2045
return PtrAuthSign (CGM.getRawFunctionPointer (FD));
2046
2046
2047
- if (auto VD = dyn_cast<VarDecl>(D)) {
2047
+ if (const auto * VD = dyn_cast<VarDecl>(D)) {
2048
2048
// We can never refer to a variable with local storage.
2049
2049
if (!VD->hasLocalStorage ()) {
2050
2050
if (VD->isFileVarDecl () || VD->hasExternalStorage ())
@@ -2057,13 +2057,13 @@ ConstantLValueEmitter::tryEmitBase(const APValue::LValueBase &base) {
2057
2057
}
2058
2058
}
2059
2059
2060
- if (auto *GD = dyn_cast<MSGuidDecl>(D))
2060
+ if (const auto *GD = dyn_cast<MSGuidDecl>(D))
2061
2061
return CGM.GetAddrOfMSGuidDecl (GD);
2062
2062
2063
- if (auto *GCD = dyn_cast<UnnamedGlobalConstantDecl>(D))
2063
+ if (const auto *GCD = dyn_cast<UnnamedGlobalConstantDecl>(D))
2064
2064
return CGM.GetAddrOfUnnamedGlobalConstantDecl (GCD);
2065
2065
2066
- if (auto *TPO = dyn_cast<TemplateParamObjectDecl>(D))
2066
+ if (const auto *TPO = dyn_cast<TemplateParamObjectDecl>(D))
2067
2067
return CGM.GetAddrOfTemplateParamObject (TPO);
2068
2068
2069
2069
return nullptr ;
You can’t perform that action at this time.
0 commit comments