diff options
author | 2012-10-04 10:09:15 -0700 | |
---|---|---|
committer | 2012-10-05 11:07:39 -0700 | |
commit | 50b35e2fd1a68cd1240e4a9d9f363e11764957d1 (patch) | |
tree | 4f3c58b7b293380f19e4f33357cb352e3330772e /src/compiler_llvm/compiler_llvm.cc | |
parent | 8e9a1497f0d7da4d55f6e7ed8a7d96ba6db7222d (diff) |
Explicitly pass Thread::Current to MutexLock and Alloc.
Change-Id: I8b75bc0617915465f102815b32306aa7760dcae4
Diffstat (limited to 'src/compiler_llvm/compiler_llvm.cc')
-rw-r--r-- | src/compiler_llvm/compiler_llvm.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler_llvm/compiler_llvm.cc b/src/compiler_llvm/compiler_llvm.cc index f65f684697..85ae7948e5 100644 --- a/src/compiler_llvm/compiler_llvm.cc +++ b/src/compiler_llvm/compiler_llvm.cc @@ -126,7 +126,7 @@ CompilerLLVM::~CompilerLLVM() { CompilationUnit* CompilerLLVM::AllocateCompilationUnit() { - MutexLock GUARD(num_cunits_lock_); + MutexLock GUARD(Thread::Current(), num_cunits_lock_); CompilationUnit* cunit = new CompilationUnit(this, num_cunits_++); if (!bitcode_filename_.empty()) { cunit->SetBitcodeFileName(StringPrintf("%s-%zu", bitcode_filename_.c_str(), num_cunits_-1)); |