]> granicus.if.org Git - clang/commitdiff
Annotate CursorVisitor::VisitDataRecursive() with attribute 'noinline'.
authorTed Kremenek <kremenek@apple.com>
Mon, 15 Nov 2010 22:23:24 +0000 (22:23 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 15 Nov 2010 22:23:24 +0000 (22:23 +0000)
Clang currently uses a ridiculous amount of stack space when inlining
this function, which can lead to premature stack overflows.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119281 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/CIndex.cpp

index 6b8bec767ebafcf687df3a47eed756e27a9ebd35..d98356aa0fdf3ddecfa1258c506a95c449268378 100644 (file)
@@ -328,7 +328,7 @@ public:
   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