Add a new InvalidCast op for this purpose and emit a diagnostic.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Hi,
this seems to have broken the OpenMP AMDGPU buildbot (https://lab.llvm.org/buildbot/#/builders/193/builds/35471)
I'm happy to help if needed.
Yeah sorry about that, but should already be fixed by https://github.com/llvm/llvm-project/commit/47446939e0e60cf52ffdd3fa671949ff3183a4c
clang/lib/AST/Interp/Interp.h | ||
---|---|---|
1761 | Would you mind changing this cast from uint8_t to unsigned? We have an internal bot using a pickier mode of MSVC and it complains about ambiguous overloads, as the operator<< doesn't have anything smaller than int and unsigned. |
clang/lib/AST/Interp/Interp.h | ||
---|---|---|
1761 | Feel free to push that change, I'm currently working on something else. |
clang/lib/AST/Interp/Interp.h | ||
---|---|---|
1761 | Yeah, that's a perfectly reasonable NFC commit to make -- go for it! |
clang/lib/AST/Interp/Interp.h | ||
---|---|---|
1761 |
Should this be doing the cast? The overloaded operator accepts an interp::CastKind already?