<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/136671>136671</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Build failure using MSVC 2019
</td>
</tr>
<tr>
<th>Labels</th>
<td>
mlir:core
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
CarlosAlbertoEnciso
</td>
</tr>
</table>
<pre>
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
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy0VE9vqzgQ_zTOxQqCMQQ4cMgjjVSpTyt1q93jE5gJeJ-xWXtImm-_MiXptlvt7VlR5PnLzG_Gv8Z71RvEimXfWHbYNDMN1lV147T1e92iI_tgpPJ209ruWn2ble6U6fnsw__33_-oOcRJyRkUfyrT2YtnUPJTo7TnF0UDpwH5yWptLyEAnbOOiT2L92wXr794XyaCiYd78nr2ZEf-PGvkURQxOGp9HreTs3-hJAZH6az3N3lL6MkzONbfm5_4pDz5iF7pnnbUym39PE3WUSSn6W4IqbP6Q-o3kWX1YgqRLKuVk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