From cbd6d44c0a94f3d26671b5325aa21bbf1335ffe8 Mon Sep 17 00:00:00 2001 From: buzbee Date: Sat, 17 Nov 2012 14:11:25 -0800 Subject: C++'ification of Quick compiler's casts o Eliminate old useless LIR casts. o Replace remaining C-style casts with new C++ versions. o Unified instruction encoding enum o Expand usage of the auto-generated ostream helpers for enum LOG messages. o Replaced all usages of intptr_t with uintptr_t. o Fixed bug in removeRedundantBranches, and moved to common code Change-Id: I53211c0de1be913f958c8fde915296ac08345b7e --- src/compiler/codegen/codegen_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/codegen/codegen_util.h') diff --git a/src/compiler/codegen/codegen_util.h b/src/compiler/codegen/codegen_util.h index 49d52e8f30..c50c0f08ce 100644 --- a/src/compiler/codegen/codegen_util.h +++ b/src/compiler/codegen/codegen_util.h @@ -19,7 +19,7 @@ namespace art { -inline int32_t s4FromSwitchData(const void* switchData) { return *(int32_t*) switchData; } +inline int32_t s4FromSwitchData(const void* switchData) { return *reinterpret_cast(switchData); } inline RegisterClass oatRegClassBySize(OpSize size) { return (size == kUnsignedHalf || size == kSignedHalf || size == kUnsignedByte || size == kSignedByte ) ? kCoreReg : kAnyReg; } void oatAssembleLIR(CompilationUnit* cUnit); void setMemRefType(LIR* lir, bool isLoad, int memType); -- cgit v1.2.3-59-g8ed1b