summaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/CodeEmitterGen.cpp
diff options
context:
space:
mode:
authorAkshay Khadse <akshayskhadse@gmail.com>2023-04-21 17:42:04 +0800
committerAkshay Khadse <akshayskhadse@gmail.com>2023-04-21 17:42:33 +0800
commit66219728e344626201e83ff9e1c7db3ede2b12fe (patch)
treefab50f1262c4e16c7a1a8a5a1969ce7538e6de0f /llvm/utils/TableGen/CodeEmitterGen.cpp
parent92bd81a2be23bada594f94578b3a45413433a789 (diff)
[Coverity] Fix uninitialized scalar members in TableGen
This change fixes static code analysis warnings Reviewed By: skan Differential Revision: https://reviews.llvm.org/D148815
Diffstat (limited to 'llvm/utils/TableGen/CodeEmitterGen.cpp')
-rw-r--r--llvm/utils/TableGen/CodeEmitterGen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeEmitterGen.cpp b/llvm/utils/TableGen/CodeEmitterGen.cpp
index 66ef71a90a93..cf42c3c4b0fd 100644
--- a/llvm/utils/TableGen/CodeEmitterGen.cpp
+++ b/llvm/utils/TableGen/CodeEmitterGen.cpp
@@ -56,8 +56,8 @@ private:
void emitInstructionBaseValues(
raw_ostream &o, ArrayRef<const CodeGenInstruction *> NumberedInstructions,
CodeGenTarget &Target, int HwMode = -1);
- unsigned BitWidth;
- bool UseAPInt;
+ unsigned BitWidth = 0u;
+ bool UseAPInt = false;
};
// If the VarBitInit at position 'bit' matches the specified variable then