[PATCH] D80066: ValueMapper does not preserve inline assembly dialect when remapping the type
Amanieu d'Antras via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat May 16 12:41:16 PDT 2020
Amanieu created this revision.
Amanieu added a reviewer: craig.topper.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
Bug report: https://bugs.llvm.org/show_bug.cgi?id=45291
Patch by Tomasz Miąsko
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D80066
Files:
llvm/lib/Transforms/Utils/ValueMapper.cpp
Index: llvm/lib/Transforms/Utils/ValueMapper.cpp
===================================================================
--- llvm/lib/Transforms/Utils/ValueMapper.cpp
+++ llvm/lib/Transforms/Utils/ValueMapper.cpp
@@ -368,7 +368,8 @@
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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80066.264450.patch
Type: text/x-patch
Size: 602 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200516/30a702f6/attachment.bin>
More information about the llvm-commits
mailing list