summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/codegen_util.h
diff options
context:
space:
mode:
author buzbee <buzbee@google.com> 2012-11-17 14:11:25 -0800
committer buzbee <buzbee@google.com> 2012-11-19 15:50:13 -0800
commitcbd6d44c0a94f3d26671b5325aa21bbf1335ffe8 (patch)
tree438c25a083cd1487b40ca8a05cef8d96339b83a9 /src/compiler/codegen/codegen_util.h
parent6aa852b927a12ba16f5c05ee7d044ac1372feb7f (diff)
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
Diffstat (limited to 'src/compiler/codegen/codegen_util.h')
-rw-r--r--src/compiler/codegen/codegen_util.h2
1 files changed, 1 insertions, 1 deletions
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<const int32_t*>(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);