mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 09:24:46 +01:00
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
This commit is contained in:
@@ -368,7 +368,8 @@ Value *Mapper::mapValue(const Value *V) {
|
||||
|
||||
if (NewTy != IA->getFunctionType())
|
||||
V = InlineAsm::get(NewTy, IA->getAsmString(), IA->getConstraintString(),
|
||||
IA->hasSideEffects(), IA->isAlignStack());
|
||||
IA->hasSideEffects(), IA->isAlignStack(),
|
||||
IA->getDialect());
|
||||
}
|
||||
|
||||
return getVM()[V] = const_cast<Value *>(V);
|
||||
|
||||
Reference in New Issue
Block a user