diff --git a/clang/utils/TableGen/RISCVVEmitter.cpp b/clang/utils/TableGen/RISCVVEmitter.cpp --- a/clang/utils/TableGen/RISCVVEmitter.cpp +++ b/clang/utils/TableGen/RISCVVEmitter.cpp @@ -58,7 +58,7 @@ SmallVector OverloadedSuffix; // BitMask for supported policies. - uint16_t PolicyBitMask; + uint16_t PolicyBitMask = 0; // Number of field, large than 1 if it's segment load/store. unsigned NF;