From 13471ed2e2a99a33881b90c4f36bbc56b30b2351 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sun, 5 Sep 2010 09:11:38 +0000 Subject: [PATCH] Fix warning reported by MSVC++ builder. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113106 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/ExtractGV.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Transforms/IPO/ExtractGV.cpp b/lib/Transforms/IPO/ExtractGV.cpp index 45c5fe76ba..bb041697a5 100644 --- a/lib/Transforms/IPO/ExtractGV.cpp +++ b/lib/Transforms/IPO/ExtractGV.cpp @@ -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(); } -- 2.11.4.GIT