summaryrefslogtreecommitdiffstats
path: root/vm/analysis/DexPrepare.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vm/analysis/DexPrepare.cpp')
-rw-r--r--vm/analysis/DexPrepare.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/vm/analysis/DexPrepare.cpp b/vm/analysis/DexPrepare.cpp
index e8112d543..82e2c0605 100644
--- a/vm/analysis/DexPrepare.cpp
+++ b/vm/analysis/DexPrepare.cpp
@@ -1043,7 +1043,9 @@ static void verifyAndOptimizeClasses(DexFile* pDexFile, bool doVerify,
static void verifyAndOptimizeClass(DexFile* pDexFile, ClassObject* clazz,
const DexClassDef* pClassDef, bool doVerify, bool doOpt)
{
+#ifndef LOG_NDEBUG
const char* classDescriptor;
+#endif
bool verified = false;
if (clazz->pDvmDex->pDexFile != pDexFile) {
@@ -1059,7 +1061,9 @@ static void verifyAndOptimizeClass(DexFile* pDexFile, ClassObject* clazz,
return;
}
+#ifndef LOG_NDEBUG
classDescriptor = dexStringByTypeIdx(pDexFile, pClassDef->classIdx);
+#endif
/*
* First, try to verify it.