summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-07-03 21:34:13 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-07-03 21:34:13 +0000
commit0a7b297d01812a26d9aea2ec332dc8472928e88b (patch)
tree76494ae8181ea78992e67c5fee55371437de8124 /clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp
parentdcac0a3b5e0032e5b2e11c4001550abfbad042bc (diff)
downloadbcm5719-llvm-0a7b297d01812a26d9aea2ec332dc8472928e88b.tar.gz
bcm5719-llvm-0a7b297d01812a26d9aea2ec332dc8472928e88b.zip
Factor out Clang's desired 8MB stack size constant from the various
places we hardcode it. llvm-svn: 336231
Diffstat (limited to 'clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp b/clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp
index 853aec2ea6c..c43d30440c8 100644
--- a/clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp
+++ b/clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp
@@ -10,6 +10,7 @@
#include "ModelInjector.h"
#include "clang/AST/Decl.h"
#include "clang/Basic/IdentifierTable.h"
+#include "clang/Basic/Stack.h"
#include "clang/Frontend/ASTUnit.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendAction.h"
@@ -95,11 +96,10 @@ void ModelInjector::onBodySynthesis(const NamedDecl *D) {
ParseModelFileAction parseModelFile(Bodies);
- const unsigned ThreadStackSize = 8 << 20;
llvm::CrashRecoveryContext CRC;
CRC.RunSafelyOnThread([&]() { Instance.ExecuteAction(parseModelFile); },
- ThreadStackSize);
+ DesiredStackSize);
Instance.getPreprocessor().FinalizeForModelFile();
OpenPOWER on IntegriCloud