aboutsummaryrefslogtreecommitdiffstats
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
commit700fb1dc588608d36cf767190ca8ffd326fcb194 (patch)
treebdabb42871921358887cfa42bb2ae92b0f25d969
parenta60c1b3c561db38ef6f87c009d833c2e4fc1683d (diff)
downloadexternal_llvm-700fb1dc588608d36cf767190ca8ffd326fcb194.zip
external_llvm-700fb1dc588608d36cf767190ca8ffd326fcb194.tar.gz
external_llvm-700fb1dc588608d36cf767190ca8ffd326fcb194.tar.bz2
move assertion into mutex guard, a partial fix for PR1606.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41050 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/ExecutionEngine/JIT/JIT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JIT.cpp b/lib/ExecutionEngine/JIT/JIT.cpp
index 57ae15e..766d62c 100644
--- a/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/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;