diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-11-15 22:23:24 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-11-15 22:23:24 +0000 |
commit | 3cb7ba0010732bbd20a8003f8d9f6a4e8d7bb20a (patch) | |
tree | 9a81cc2647bd96dd244b612a62edafa53bd6c2e9 | |
parent | d6543f8bbac18cdb678a67da2a676c30c2941eca (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119281 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/libclang/CIndex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index 6b8bec767e..d98356aa0f 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -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 |