Fix warning reported by MSVC++ builder.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113106 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nick Lewycky 2010-09-05 09:11:38 +00:00
parent b0e17779ba
commit e110abb313

View File

@ -55,7 +55,7 @@ namespace {
if (I->hasLocalLinkage())
I->setVisibility(GlobalValue::HiddenVisibility);
I->setLinkage(GlobalValue::ExternalLinkage);
if (deleteStuff == Named.count(I))
if (deleteStuff == (bool)Named.count(I))
I->setInitializer(0);
}
@ -65,7 +65,7 @@ namespace {
if (I->hasLocalLinkage())
I->setVisibility(GlobalValue::HiddenVisibility);
I->setLinkage(GlobalValue::ExternalLinkage);
if (deleteStuff == Named.count(I))
if (deleteStuff == (bool)Named.count(I))
I->deleteBody();
}