summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-13 20:08:16 +0000
committerChris Lattner <sabre@nondot.org>2007-08-13 20:08:16 +0000
commit2b40caa861160c82b40fd35d248cd8b6d1f09ef4 (patch)
tree5b69725723a2a89c68191ca51fcf5677c21d1b5e
parentccb36118812d5ea4c380f8af461c127a74b56386 (diff)
downloadbcm5719-llvm-2b40caa861160c82b40fd35d248cd8b6d1f09ef4.tar.gz
bcm5719-llvm-2b40caa861160c82b40fd35d248cd8b6d1f09ef4.zip
move assertion into mutex guard, a partial fix for PR1606.
llvm-svn: 41050
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JIT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
index 57ae15e7fe9..766d62ce194 100644
--- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
@@ -238,9 +238,9 @@ GenericValue JIT::runFunction(Function *F,
///
void JIT::runJITOnFunction(Function *F) {
static bool isAlreadyCodeGenerating = false;
- assert(!isAlreadyCodeGenerating && "Error: Recursive compilation detected!");
MutexGuard locked(lock);
+ assert(!isAlreadyCodeGenerating && "Error: Recursive compilation detected!");
// JIT the function
isAlreadyCodeGenerating = true;
OpenPOWER on IntegriCloud