From c1f143de3d0370a17a4561eb83bf10a5d7908aa3 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 1 Dec 2011 17:31:10 -0800 Subject: Remove some lint. Change-Id: Ieecd7c10e62bce27e2db38f96d5df9782ef0cff6 --- src/compiler/Frontend.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler/Frontend.cc') diff --git a/src/compiler/Frontend.cc b/src/compiler/Frontend.cc index 57d4616d84..89f63bec04 100644 --- a/src/compiler/Frontend.cc +++ b/src/compiler/Frontend.cc @@ -74,7 +74,7 @@ STATIC inline int parseInsn(const u2* codePtr, DecodedInstruction* decInsn, dexDecodeInstruction(codePtr, decInsn); if (printMe) { - char *decodedString = oatGetDalvikDisassembly(decInsn, NULL); + char* decodedString = oatGetDalvikDisassembly(decInsn, NULL); LOG(INFO) << codePtr << ": 0x" << std::hex << (int)opcode << " " << decodedString; } @@ -218,7 +218,7 @@ void oatDumpCFG(CompilationUnit* cUnit, const char* dirPrefix) std::string name = art::PrettyMethod(cUnit->method_idx, *cUnit->dex_file); char startOffset[80]; sprintf(startOffset, "_%x", cUnit->entryBlock->fallThrough->startOffset); - char* fileName = (char *) oatNew( + char* fileName = (char*) oatNew( strlen(dirPrefix) + name.length() + strlen(".dot") + 1, true); -- cgit v1.2.3-59-g8ed1b