From 50b35e2fd1a68cd1240e4a9d9f363e11764957d1 Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Thu, 4 Oct 2012 10:09:15 -0700 Subject: Explicitly pass Thread::Current to MutexLock and Alloc. Change-Id: I8b75bc0617915465f102815b32306aa7760dcae4 --- src/compiler_llvm/compiler_llvm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler_llvm/compiler_llvm.cc') 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)); -- cgit v1.2.3-59-g8ed1b