diff options
author | Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> | 2013-12-31 13:34:05 +0100 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2014-02-02 02:04:22 -0800 |
commit | a495ba91d6c01af4318b8b0ce2b5286180132036 (patch) | |
tree | e3e07181d801100e67a2d34723f3972c6fdb9c70 | |
parent | 15932a7980a0090d5e2fc2eb6d4e520872168ab3 (diff) | |
download | android_dalvik-a495ba91d6c01af4318b8b0ce2b5286180132036.tar.gz android_dalvik-a495ba91d6c01af4318b8b0ce2b5286180132036.tar.bz2 android_dalvik-a495ba91d6c01af4318b8b0ce2b5286180132036.zip |
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 33edf831a..e8b497c90 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; bool remOp = false; |