forked from OSchip/llvm-project
Initialize the array with the "C++ way".
llvm-svn: 118302
This commit is contained in:
parent
5a2c68d308
commit
d87ea457bb
|
@ -215,9 +215,7 @@ private:
|
|||
unsigned char Values[diag::DIAG_UPPER_LIMIT/2];
|
||||
|
||||
public:
|
||||
DiagMappings() {
|
||||
memset(Values, 0, diag::DIAG_UPPER_LIMIT/2);
|
||||
}
|
||||
DiagMappings() : Values() { }
|
||||
|
||||
void setMapping(diag::kind Diag, unsigned Map) {
|
||||
size_t Shift = (Diag & 1)*4;
|
||||
|
|
Loading…
Reference in New Issue