[llvm] [TargetLowering] Use Correct VT for Multi-out Asm (PR #116024)
Sam Elliott via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 14 04:32:25 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();
----------------
lenary wrote:
Better errors for IR that frontends don't produce seems like a different issue to fixing an actual crash in the AArch64 backend that frontends can hit, so should be in a different PR IMO.
https://github.com/llvm/llvm-project/pull/116024
More information about the llvm-commits
mailing list