From: Argyrios Kyrtzidis Date: Fri, 5 Nov 2010 22:10:14 +0000 (+0000) Subject: Initialize the array with the "C++ way". X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e57494445747c911f48b853015b784e292fefe4;p=clang 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 55bda36e38..f9c211f3b1 100644 --- a/include/clang/Basic/Diagnostic.h +++ b/include/clang/Basic/Diagnostic.h @@ -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;