Issue |
89709
|
Summary |
llvm/lib/Target/AArch64/AArch64InstrInfo.h: 2 * missing default case in switch ?
|
Labels |
new issue
|
Assignees |
|
Reporter |
dcb314
|
Static analyser cppcheck says:
1.
llvm/lib/Target/AArch64/AArch64InstrInfo.h:722:14: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn]
Source code is
switch (K) {
case IA: return Zero ? AArch64::AUTIZA : AArch64::AUTIA;
case IB: return Zero ? AArch64::AUTIZB : AArch64::AUTIB;
case DA: return Zero ? AArch64::AUTDZA : AArch64::AUTDA;
case DB: return Zero ? AArch64::AUTDZB : AArch64::AUTDB;
}
Suggest add a default case to the switch or a return at the end of the function.
2.
llvm/lib/Target/AArch64/AArch64InstrInfo.h:734:14: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn]
Duplicate.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs