[llvm-commits] [poolalloc] r54753 - /poolalloc/trunk/lib/DSA/StdLibPass.cpp

John Criswell criswell at uiuc.edu
Wed Aug 13 13:21:01 PDT 2008


Author: criswell
Date: Wed Aug 13 15:21:01 2008
New Revision: 54753

URL: http://llvm.org/viewvc/llvm-project?rev=54753&view=rev
Log:
Only create the fake DSGraphs if the function is not a vararg function.
This could probably be done better, but this appears to work for now.

Modified:
    poolalloc/trunk/lib/DSA/StdLibPass.cpp

Modified: poolalloc/trunk/lib/DSA/StdLibPass.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/StdLibPass.cpp?rev=54753&r1=54752&r2=54753&view=diff

==============================================================================
--- poolalloc/trunk/lib/DSA/StdLibPass.cpp (original)
+++ poolalloc/trunk/lib/DSA/StdLibPass.cpp Wed Aug 13 15:21:01 2008
@@ -45,7 +45,7 @@
   for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
     DSGraph &Graph = getOrCreateGraph(&*I);
     //If this is an true external, check it out
-    if (I->isDeclaration() && !I->isIntrinsic()) {
+    if (I->isDeclaration() && !I->isIntrinsic() && !(I->isVarArg())) {
       const std::string& Name = I->getName();
       if (Name == "calloc" ||
           Name == "malloc" ||





More information about the llvm-commits mailing list