[llvm-commits] [llvm] r113106 - /llvm/trunk/lib/Transforms/IPO/ExtractGV.cpp
Nick Lewycky
nicholas at mxc.ca
Sun Sep 5 02:11:38 PDT 2010
Author: nicholas
Date: Sun Sep 5 04:11:38 2010
New Revision: 113106
URL: http://llvm.org/viewvc/llvm-project?rev=113106&view=rev
Log:
Fix warning reported by MSVC++ builder.
Modified:
llvm/trunk/lib/Transforms/IPO/ExtractGV.cpp
Modified: llvm/trunk/lib/Transforms/IPO/ExtractGV.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/ExtractGV.cpp?rev=113106&r1=113105&r2=113106&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/ExtractGV.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/ExtractGV.cpp Sun Sep 5 04:11:38 2010
@@ -55,7 +55,7 @@
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 @@
if (I->hasLocalLinkage())
I->setVisibility(GlobalValue::HiddenVisibility);
I->setLinkage(GlobalValue::ExternalLinkage);
- if (deleteStuff == Named.count(I))
+ if (deleteStuff == (bool)Named.count(I))
I->deleteBody();
}
More information about the llvm-commits
mailing list