================
@@ -10954,6 +10965,27 @@ ASTNodeImporter::ImportAPValue(const APValue
&FromValue) {
} else
Result.setLValue(Base, Offset, APValue::NoLValuePath{},
FromValue.isNullPointer());
+ break;
+ }
+ case APValue::Reflection: {
+ switch (FromValue.getReflectionOperandKind()) {
+ case ReflectionKind::Null:
+ Result = APValue(ReflectionKind::Null, nullptr);
+ break;
+ case ReflectionKind::Type: {
+ const auto *FromTSI = static_cast<const TypeSourceInfo *>(
+ FromValue.getReflectionOpaqueOperand());
+ QualType ImpType = importChecked(Err, FromTSI->getType());
----------------
changkhothuychung wrote:
I changed to use `importChecked`, thanks for the review!
https://github.com/llvm/llvm-project/pull/190356
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits