Skip to content

Commit 5f65fae

Browse files
committed
ValueMapper does not preserve inline assembly dialect when remapping the type
Bug report: https://bugs.llvm.org/show_bug.cgi?id=45291 Patch by Tomasz Miąsko Differential Revision: https://reviews.llvm.org/D80066
1 parent 37ce8d6 commit 5f65fae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Utils/ValueMapper.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ Value *Mapper::mapValue(const Value *V) {
368368

369369
if (NewTy != IA->getFunctionType())
370370
V = InlineAsm::get(NewTy, IA->getAsmString(), IA->getConstraintString(),
371-
IA->hasSideEffects(), IA->isAlignStack());
371+
IA->hasSideEffects(), IA->isAlignStack(),
372+
IA->getDialect());
372373
}
373374

374375
return getVM()[V] = const_cast<Value *>(V);

0 commit comments

Comments
 (0)