Initialize the array with the "C++ way".

llvm-svn: 118302
This commit is contained in:
Argyrios Kyrtzidis 2010-11-05 22:10:14 +00:00
parent 5a2c68d308
commit d87ea457bb
1 changed files with 1 additions and 3 deletions

View File

@ -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;