forked from OSchip/llvm-project
Silence "comparison between signed and unsigned integer expressions" warnings.
llvm-svn: 120897
This commit is contained in:
parent
e26a872b02
commit
b024166c97
|
@ -1241,7 +1241,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
void setSpecializationKind(TemplateSpecializationKind TSK) {
|
void setSpecializationKind(TemplateSpecializationKind TSK) {
|
||||||
if (SpecializationKind != TSK)
|
if (getSpecializationKind() != TSK)
|
||||||
ClearLinkageAndVisibilityCache();
|
ClearLinkageAndVisibilityCache();
|
||||||
SpecializationKind = TSK;
|
SpecializationKind = TSK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -531,9 +531,9 @@ LinkageInfo NamedDecl::getLinkageAndVisibility() const {
|
||||||
if (HasLinkageAndVisibilityCached) {
|
if (HasLinkageAndVisibilityCached) {
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
LinkageInfo LI = getLVForDecl(this, LVFlags());
|
LinkageInfo LI = getLVForDecl(this, LVFlags());
|
||||||
assert(LI.visibility() == CachedVisibility);
|
assert(LI.visibility() == Visibility(CachedVisibility));
|
||||||
assert(LI.visibilityExplicit() == CachedVisibilityIsExplicit);
|
assert(LI.visibilityExplicit() == CachedVisibilityIsExplicit);
|
||||||
assert(LI.linkage() == CachedLinkage);
|
assert(LI.linkage() == Linkage(CachedLinkage));
|
||||||
#endif
|
#endif
|
||||||
return LinkageInfo(Linkage(CachedLinkage), Visibility(CachedVisibility),
|
return LinkageInfo(Linkage(CachedLinkage), Visibility(CachedVisibility),
|
||||||
CachedVisibilityIsExplicit);
|
CachedVisibilityIsExplicit);
|
||||||
|
@ -930,7 +930,7 @@ VarDecl *VarDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L,
|
||||||
|
|
||||||
void VarDecl::setStorageClass(StorageClass SC) {
|
void VarDecl::setStorageClass(StorageClass SC) {
|
||||||
assert(isLegalForVariable(SC));
|
assert(isLegalForVariable(SC));
|
||||||
if (SClass != SC)
|
if (getStorageClass() != SC)
|
||||||
ClearLinkageAndVisibilityCache();
|
ClearLinkageAndVisibilityCache();
|
||||||
|
|
||||||
SClass = SC;
|
SClass = SC;
|
||||||
|
@ -1341,7 +1341,7 @@ FunctionDecl *FunctionDecl::getCanonicalDecl() {
|
||||||
|
|
||||||
void FunctionDecl::setStorageClass(StorageClass SC) {
|
void FunctionDecl::setStorageClass(StorageClass SC) {
|
||||||
assert(isLegalForFunction(SC));
|
assert(isLegalForFunction(SC));
|
||||||
if (SClass != SC)
|
if (getStorageClass() != SC)
|
||||||
ClearLinkageAndVisibilityCache();
|
ClearLinkageAndVisibilityCache();
|
||||||
|
|
||||||
SClass = SC;
|
SClass = SC;
|
||||||
|
|
Loading…
Reference in New Issue