summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_driver.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2014-08-23 05:47:17 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-08-23 05:47:17 +0000
commit762f0a5bdd238458bbb463a9565388f2047a98d4 (patch)
treed91480c88731b4eca5ad51a5cf01aeb68adf8dc0 /compiler/driver/compiler_driver.cc
parente6916c429c16ae8ae3b8cd641d662742c23d1fb5 (diff)
parent53c913bb71b218714823c8c87a1f92830c336f61 (diff)
Merge "ART: Clean up compiler"
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
-rw-r--r--compiler/driver/compiler_driver.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc
index 3915381bb5..3b0c8af9ef 100644
--- a/compiler/driver/compiler_driver.cc
+++ b/compiler/driver/compiler_driver.cc
@@ -444,7 +444,7 @@ CompilerTls* CompilerDriver::GetTls() {
// Lazily create thread-local storage
CompilerTls* res = static_cast<CompilerTls*>(pthread_getspecific(tls_key_));
if (res == NULL) {
- res = new CompilerTls();
+ res = compiler_->CreateNewCompilerTls();
CHECK_PTHREAD_CALL(pthread_setspecific, (tls_key_, res), "compiler tls");
}
return res;