diff --git a/clang/tools/libclang/CXLoadedDiagnostic.h b/clang/tools/libclang/CXLoadedDiagnostic.h index 93995d7bb798c..5ad9e1c32a92f 100644 --- a/clang/tools/libclang/CXLoadedDiagnostic.h +++ b/clang/tools/libclang/CXLoadedDiagnostic.h @@ -71,11 +71,11 @@ class CXLoadedDiagnostic : public CXDiagnosticImpl { struct Location { CXFile file; - unsigned line; - unsigned column; - unsigned offset; + unsigned line = 0; + unsigned column = 0; + unsigned offset = 0; - Location() : line(0), column(0), offset(0) {} + Location() = default; }; Location DiagLoc;