Silence "comparison between signed and unsigned integer expressions" warnings.

llvm-svn: 120897
This commit is contained in:
Benjamin Kramer 2010-12-04 08:16:05 +00:00
parent e26a872b02
commit b024166c97
2 changed files with 5 additions and 5 deletions

View File

@ -1241,7 +1241,7 @@ public:
}
void setSpecializationKind(TemplateSpecializationKind TSK) {
if (SpecializationKind != TSK)
if (getSpecializationKind() != TSK)
ClearLinkageAndVisibilityCache();
SpecializationKind = TSK;
}

View File

@ -531,9 +531,9 @@ LinkageInfo NamedDecl::getLinkageAndVisibility() const {
if (HasLinkageAndVisibilityCached) {
#ifndef NDEBUG
LinkageInfo LI = getLVForDecl(this, LVFlags());
assert(LI.visibility() == CachedVisibility);
assert(LI.visibility() == Visibility(CachedVisibility));
assert(LI.visibilityExplicit() == CachedVisibilityIsExplicit);
assert(LI.linkage() == CachedLinkage);
assert(LI.linkage() == Linkage(CachedLinkage));
#endif
return LinkageInfo(Linkage(CachedLinkage), Visibility(CachedVisibility),
CachedVisibilityIsExplicit);
@ -930,7 +930,7 @@ VarDecl *VarDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L,
void VarDecl::setStorageClass(StorageClass SC) {
assert(isLegalForVariable(SC));
if (SClass != SC)
if (getStorageClass() != SC)
ClearLinkageAndVisibilityCache();
SClass = SC;
@ -1341,7 +1341,7 @@ FunctionDecl *FunctionDecl::getCanonicalDecl() {
void FunctionDecl::setStorageClass(StorageClass SC) {
assert(isLegalForFunction(SC));
if (SClass != SC)
if (getStorageClass() != SC)
ClearLinkageAndVisibilityCache();
SClass = SC;