================
@@ -740,16 +764,182 @@ Interpreter::Visit(const BooleanLiteralNode *node) {
return ValueObject::CreateValueObjectFromBool(m_target, value, "result");
}
+llvm::Expected<CastKind>
+Interpreter::VerifyCastType(lldb::ValueObjectSP operand, CompilerType op_type,
+ CompilerType target_type, int location) {
----------------
Michael137 wrote:
Why pass the `op_type` separately? Can't we just derive it from `operand` in
this function?
Also can we rename `op_type` to `source_type`? I find that's an easier
counter-part to `target_type` when reading the code
https://github.com/llvm/llvm-project/pull/170332
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits