Skip to content

Commit 246dfcd

Browse files
authored
Merge pull request #59 from Amanieu/rust_asm4
ValueMapper does not preserve inline assembly dialect when remapping the type
2 parents c1b9ea8 + 989d16e commit 246dfcd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Utils/ValueMapper.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@ Value *Mapper::mapValue(const Value *V) {
369369

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

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

0 commit comments

Comments
 (0)