[cfe-commits] r119281 - /cfe/trunk/tools/libclang/CIndex.cpp

Ted Kremenek kremenek at apple.com
Mon Nov 15 14:23:24 PST 2010


Author: kremenek
Date: Mon Nov 15 16:23:24 2010
New Revision: 119281

URL: http://llvm.org/viewvc/llvm-project?rev=119281&view=rev
Log:
Annotate CursorVisitor::VisitDataRecursive() with attribute 'noinline'.
Clang currently uses a ridiculous amount of stack space when inlining
this function, which can lead to premature stack overflows.

Modified:
    cfe/trunk/tools/libclang/CIndex.cpp

Modified: cfe/trunk/tools/libclang/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndex.cpp?rev=119281&r1=119280&r2=119281&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndex.cpp (original)
+++ cfe/trunk/tools/libclang/CIndex.cpp Mon Nov 15 16:23:24 2010
@@ -328,7 +328,7 @@
   bool IsInRegionOfInterest(CXCursor C);
   bool RunVisitorWorkList(VisitorWorkList &WL);
   void EnqueueWorkList(VisitorWorkList &WL, Stmt *S);
-  bool VisitDataRecursive(Stmt *S);
+  bool VisitDataRecursive(Stmt *S) __attribute__((noinline));
 };
 
 } // end anonymous namespace





More information about the cfe-commits mailing list