[all-commits] [llvm/llvm-project] db3013: [mlir] Silence warnings when building with Clang ToT
Alexandre Ganea via All-commits
all-commits at lists.llvm.org
Tue Jul 5 17:34:10 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: db3013d684ddff31a7ee97b2ba499eac29ac8704
https://github.com/llvm/llvm-project/commit/db3013d684ddff31a7ee97b2ba499eac29ac8704
Author: Alexandre Ganea <alex_toresh at yahoo.fr>
Date: 2022-07-05 (Tue, 05 Jul 2022)
Changed paths:
M mlir/include/mlir/ExecutionEngine/MemRefUtils.h
M mlir/include/mlir/Tools/PDLL/ODS/Operation.h
Log Message:
-----------
[mlir] Silence warnings when building with Clang ToT
Previously, these warnings were seen:
[6599/7564] Building native mlir-pdll...
[270/278] Building CXX object tools/mlir/lib/Tools/PDLL/CodeGen/CMakeFiles/obj.MLIRPDLLCodeGen.dir/CPPGen.cpp.obj
In file included from C:/git/llvm-project/mlir/lib/Tools/PDLL/CodeGen/CPPGen.cpp:20:
C:/git/llvm-project/mlir/include\mlir/Tools/PDLL/ODS/Operation.h(202,16): warning: unqualified friend declaration referring to type outside of the nearest enclosing namespace is a Microsoft extension; add a nested name specifier [-Wmicrosoft-unqualified-friend]
friend class Dialect;
^
::mlir::
1 warning generated.
[278/278] Linking CXX executable bin\mlir-pdll.exe
[6857/7564] Building CXX object tools/mlir/unittests/ExecutionEngine/CMakeFiles/MLIRExecutionEngineTests.dir/Invoke.cpp.obj
In file included from C:/git/llvm-project/mlir/unittests/ExecutionEngine/Invoke.cpp:20:
C:/git/llvm-project/mlir/include\mlir/ExecutionEngine/MemRefUtils.h(104,27): warning: shift count >= width of type [-Wshift-count-overflow]
assert(sizeof(T) < (1ul << 32) && "Elemental type overflows");
^ ~~
C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt\assert.h(40,17): note: expanded from macro 'assert'
(!!(expression)) || \
^~~~~~~~~~
1 warning generated.
Commit: 18f230a89aa234ac58be4fb8cee2bfa95ea67be4
https://github.com/llvm/llvm-project/commit/18f230a89aa234ac58be4fb8cee2bfa95ea67be4
Author: Alexandre Ganea <alex_toresh at yahoo.fr>
Date: 2022-07-05 (Tue, 05 Jul 2022)
Changed paths:
M clang/include/clang/Analysis/SelectorExtras.h
Log Message:
-----------
[Clang] Silence warning when building with MSVC 2022
Previously, the warning seen:
[22/95] Building CXX object tools\clang\lib\StaticAnalyzer\Checker...bj.clangStaticAnalyzerCheckers.dir\NoReturnFunctionChecker.cpp.objC:\git\llvm-project\clang\lib\StaticAnalyzer\Checkers\NoReturnFunctionChecker.cpp(149): warning C4305: 'if': truncation from 'size_t' to 'bool'
C:\git\llvm-project\clang\include\clang/Analysis/SelectorExtras.h(28): note: see reference to function template instantiation 'clang::Selector clang::getKeywordSelector<const char,const char,const char,const char>(clang::ASTContext &,const char *,const char *,const char *,const char *)' being compiled
C:\git\llvm-project\clang\lib\StaticAnalyzer\Checkers\NoReturnFunctionChecker.cpp(125): note: see reference to function template instantiation 'void clang::lazyInitKeywordSelector<const char,const char,const char,const char>(clang::Selector &,clang::ASTContext &,const char *,const char *,const char *,const char *)' being compiled
Commit: 0880b9d52620ca3c46456095f6040a2e4de6c871
https://github.com/llvm/llvm-project/commit/0880b9d52620ca3c46456095f6040a2e4de6c871
Author: Alexandre Ganea <alex_toresh at yahoo.fr>
Date: 2022-07-05 (Tue, 05 Jul 2022)
Changed paths:
M clang/unittests/StaticAnalyzer/RangeSetTest.cpp
Log Message:
-----------
[Clang][unittests] Silence trucation warning with MSVC 2022
Differential Revision: https://reviews.llvm.org/D129152
Compare: https://github.com/llvm/llvm-project/compare/92edd74b37c7...0880b9d52620
More information about the All-commits
mailing list