diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2020-03-11 15:53:10 +0300 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2020-03-11 16:54:34 +0300 |
commit | edbf2fde14a2b50e64ea20a011b2a3242c75b4d9 (patch) | |
tree | b1ac6f0a4155ac211b93171ec436ede52f03abdb /clang/lib | |
parent | 31c85ca06d731d22e9dcc6ac9569c5c27efc8c82 (diff) | |
download | llvm-edbf2fde14a2b50e64ea20a011b2a3242c75b4d9.zip llvm-edbf2fde14a2b50e64ea20a011b2a3242c75b4d9.tar.gz llvm-edbf2fde14a2b50e64ea20a011b2a3242c75b4d9.tar.bz2 |
[analyzer] Fix a strange compile error on a certain Clang-7.0.0
error: default initialization of an object of const type
'const clang::QualType' without a user-provided
default constructor
Irrelevant; // A placeholder, whenever we do not care about the type.
^
{}
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp index 6080157..d52b3f3 100644 --- a/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp @@ -500,7 +500,7 @@ void StdLibraryFunctionsChecker::initFunctionSummaries( // or long long, so three summary variants would be enough). // Of course, function variants are also useful for C++ overloads. const QualType - Irrelevant; // A placeholder, whenever we do not care about the type. + Irrelevant{}; // A placeholder, whenever we do not care about the type. const QualType IntTy = ACtx.IntTy; const QualType LongTy = ACtx.LongTy; const QualType LongLongTy = ACtx.LongLongTy; |