llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Don't allow SBValue::Cast to cast from a smaller type to a larger,

Open jimingham opened this issue 1 year ago • 2 comments

as we don't in general know where the extra data should come from.

Differential Revision: https://reviews.llvm.org/D153657

(cherry picked from commit f05e2fb013f0e2504471a9899dba7d70cc58a63d)

jimingham avatar Jun 27 '23 17:06 jimingham

@swift-ci please test

jimingham avatar Jun 27 '23 17:06 jimingham

I'll have to patch this further, the swift/C++ interop is doing a cast from a smaller to a larger type, so I have to make it not do that.

jimingham avatar Jun 27 '23 17:06 jimingham