Open
Description
Building using MSVC 2019 (Windows) fails with the following error:
913>Building Custom Rule .../llvm-project/cross-project-tests/CMakeLists.txt
913>mlir-support.cpp
913>...\llvm-project\llvm\..\mlir\include\mlir/IR/Location.h(190,1): error C2440: 'reinterpret_cast': cannot convert from 'T' to 'uintptr_t'
913> with
913> [
913> T=uintptr_t
913> ]
913>...\llvm-project\llvm\..\mlir\include\mlir/IR/Location.h(190,14): message : Conversion is a valid standard conversion, which can be performed implicitly or by use of static_cast, C-style cast or function-style cast
913>...\llvm-project\cross-project-tests\debuginfo-tests\llvm-prettyprinters\gdb\mlir-support.cpp(29): message : see reference to function template instantiation 'mlir::OpaqueLoc mlir::OpaqueLoc::get<uintptr_t>(T,mlir::MLIRContext *)' being compiled
913> with
913> [
913> T=uintptr_t
913> ]
913>Done building project "check-gdb-mlir-support.vcxproj" -- FAILED.
Initial commit: https://reviews.llvm.org/D117088