diff options
| author | Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> | 2013-12-31 13:34:05 +0100 |
|---|---|---|
| committer | LorDClockaN <davor@losinj.com> | 2014-03-28 21:50:35 +0100 |
| commit | 2ad51eaac2ce87c15593269ad842763bd4dc4da9 (patch) | |
| tree | 1e8225f9b588b632750cee62c5ce5a9cf445b112 | |
| parent | 734b384dba2c6c7d2c16e78e0babb383e5f2200a (diff) | |
Initialize callTgt variable
This silcences a clang build failure:
dalvik/vm/compiler/codegen/arm/armv7-a-neon/../CodegenDriver.cpp:904:41:
error: variable 'callTgt' is uninitialized when used here
[-Werror,-Wuninitialized]
LOAD_FUNC_ADDR(cUnit, r2, (int) callTgt);
^~~~~~~
Change-Id: Ic5b3bb492f19b842743bf7d6214c89301ff524e7
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
| -rw-r--r-- | vm/compiler/codegen/arm/CodegenDriver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/compiler/codegen/arm/CodegenDriver.cpp b/vm/compiler/codegen/arm/CodegenDriver.cpp index 3fd647824..93ea6133a 100644 --- a/vm/compiler/codegen/arm/CodegenDriver.cpp +++ b/vm/compiler/codegen/arm/CodegenDriver.cpp @@ -824,7 +824,7 @@ static bool genArithOpInt(CompilationUnit *cUnit, MIR *mir, bool checkZero = false; bool unary = false; int retReg = r0; - int (*callTgt)(int, int); + int (*callTgt)(int, int) = NULL; RegLocation rlResult; bool shiftOp = false; |
