commit | 2e57494445747c911f48b853015b784e292fefe4 | [log] [tgz] |
---|---|---|
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Fri Nov 05 22:10:14 2010 +0000 |
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Fri Nov 05 22:10:14 2010 +0000 |
tree | e826d25b449624b2c277ac08eef6c59c880f8f9f | |
parent | 93798e25d68e2d146cff9bd0355d4b7b1ca765f1 [diff] |
Initialize the array with the "C++ way". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118302 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/Basic/Diagnostic.h b/include/clang/Basic/Diagnostic.h index 55bda36..f9c211f 100644 --- a/include/clang/Basic/Diagnostic.h +++ b/include/clang/Basic/Diagnostic.h
@@ -215,9 +215,7 @@ 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;