[all-commits] [llvm/llvm-project] eec7f8: [WebAssembly] Add missing default cases in switch ...
smanna12 via All-commits
all-commits at lists.llvm.org
Wed Mar 3 13:15:47 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eec7f8f7b1226be422a76542cb403d02538f453a
https://github.com/llvm/llvm-project/commit/eec7f8f7b1226be422a76542cb403d02538f453a
Author: Soumi Manna <soumi.manna at intel.com>
Date: 2021-03-03 (Wed, 03 Mar 2021)
Changed paths:
M clang/lib/CodeGen/CGBuiltin.cpp
Log Message:
-----------
[WebAssembly] Add missing default cases in switch statements
unsigned variable 'IntNo' has been declared but not been defined inside function
EmitWebAssemblyBuiltinExpr().
static code analysis tool complains about uninitialized variable "IntNo" since
this enters to default branch without setting any intrinsics and calls Function
*Callee = CGM.getIntrinsic(IntNo).
This patch fixes the problem by adding default cases in switch statements.
More information about the All-commits
mailing list