llvm-project
llvm-project copied to clipboard
Don't allow SBValue::Cast to cast from a smaller type to a larger,
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)
@swift-ci please test
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.