[llvm-commits] [poolalloc] r106642 - in /poolalloc/trunk/lib/DSA: DSGraph.cpp Local.cpp
Patrick Simmons
simmon12 at illinois.edu
Wed Jun 23 11:15:58 PDT 2010
Author: psimmons
Date: Wed Jun 23 13:15:58 2010
New Revision: 106642
URL: http://llvm.org/viewvc/llvm-project?rev=106642&view=rev
Log:
fix signedness warnings (errors due to -Werror)
Modified:
poolalloc/trunk/lib/DSA/DSGraph.cpp
poolalloc/trunk/lib/DSA/Local.cpp
Modified: poolalloc/trunk/lib/DSA/DSGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/DSGraph.cpp?rev=106642&r1=106641&r2=106642&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/DSGraph.cpp (original)
+++ poolalloc/trunk/lib/DSA/DSGraph.cpp Wed Jun 23 13:15:58 2010
@@ -524,7 +524,7 @@
//are var-arg and which are fixed. Apparently we can't assume this, but I'm not sure
//of a better way. For now, this assumption is known limitation.
const FunctionType *CalleeFuncType = DSCallSite::FunctionTypeOfCallSite(CS);
- unsigned NumFixedArgs = CalleeFuncType->getNumParams();
+ int NumFixedArgs = CalleeFuncType->getNumParams();
std::vector<DSNodeHandle> Args;
Args.reserve(CS.arg_end()-CS.arg_begin());
Modified: poolalloc/trunk/lib/DSA/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/Local.cpp?rev=106642&r1=106641&r2=106642&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/Local.cpp (original)
+++ poolalloc/trunk/lib/DSA/Local.cpp Wed Jun 23 13:15:58 2010
@@ -887,11 +887,11 @@
//Get the FunctionType for the called function
const FunctionType *CalleeFuncType = DSCallSite::FunctionTypeOfCallSite(CS);
- unsigned NumFixedArgs = CalleeFuncType->getNumParams();
+ int NumFixedArgs = CalleeFuncType->getNumParams();
// Sanity check--this really, really shouldn't happen
if (!CalleeFuncType->isVarArg())
- assert(CS.arg_size() == NumFixedArgs &&
+ assert(CS.arg_size() == static_cast<unsigned>(NumFixedArgs) &&
"Too many arguments/incorrect function signature!");
std::vector<DSNodeHandle> Args;
More information about the llvm-commits
mailing list