[llvm] [TargetLowering] Use Correct VT for Multi-out Asm (PR #116024)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 12:19:03 PST 2024
================
@@ -5753,7 +5753,8 @@ TargetLowering::ParseConstraints(const DataLayout &DL,
assert(!Call.getType()->isVoidTy() && "Bad inline asm!");
if (auto *STy = dyn_cast<StructType>(Call.getType())) {
OpInfo.ConstraintVT =
- getSimpleValueType(DL, STy->getElementType(ResNo));
+ getAsmOperandValueType(DL, STy->getElementType(ResNo))
+ .getSimpleVT();
----------------
arsenm wrote:
I just tried it and it seems to hit unreachable "Unknown type!"; we should do better here and report a proper error
https://github.com/llvm/llvm-project/pull/116024
More information about the llvm-commits
mailing list