aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorToma Tabacu <[email protected]>2015-02-24 15:25:09 +0000
committerRalf Baechle <[email protected]>2015-04-01 17:21:46 +0200
commite6baf0e0b6757082554b9fc217f1f036e9e4ee8f (patch)
tree7072244ddc3d5951878ebc51abb087186b8ae564 /tools/perf/scripts/python
parentfe92da0f355e9f664a56702c36c50e20e84c51cd (diff)
MIPS: LLVMLinux: Fix a 'cast to type not present in union' error.
Remove a cast to the 'mips16e_instruction' union inside an if condition and instead do an assignment to a local 'union mips16e_instruction' variable's 'full' member before the if statement and use this variable in the if condition. This is the error message reported by clang: arch/mips/kernel/branch.c:38:8: error: cast to union type from type 'unsigned short' not present in union if (((union mips16e_instruction)inst).ri.opcode ^ ~~~~ The changed code can be compiled successfully by both gcc and clang. Signed-off-by: Toma Tabacu <[email protected]> Signed-off-by: Daniel Sanders <[email protected]> Cc: Andreas Herrmann <[email protected]> Cc: David Daney <[email protected]> Cc: Manuel Lauss <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/9312/ Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions