summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-11-15 22:23:24 +0000
committerTed Kremenek <kremenek@apple.com>2010-11-15 22:23:24 +0000
commit51df4d55967e87e1e3b05f9c473491ead9e326bf (patch)
tree8a195e1a0716173febe485b2e55b85fc16ea4941
parent97154f67d9bc1a2273aa3aa66add528c470530a1 (diff)
downloadbcm5719-llvm-51df4d55967e87e1e3b05f9c473491ead9e326bf.tar.gz
bcm5719-llvm-51df4d55967e87e1e3b05f9c473491ead9e326bf.zip
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. llvm-svn: 119281
-rw-r--r--clang/tools/libclang/CIndex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp
index 6b8bec767eb..d98356aa0fd 100644
--- a/clang/tools/libclang/CIndex.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud