From: Craig Topper Date: Sun, 17 May 2020 21:57:04 +0000 (-0700) Subject: ValueMapper does not preserve inline assembly dialect when remapping the type X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5f65faef2c61bfb5e041f74db61665f43a05e9db;p=android-x86%2Fexternal-llvm-project.git 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 --- diff --git a/llvm/lib/Transforms/Utils/ValueMapper.cpp b/llvm/lib/Transforms/Utils/ValueMapper.cpp index 3c55df2d006..f1b3fe8e2fa 100644 --- a/llvm/lib/Transforms/Utils/ValueMapper.cpp +++ b/llvm/lib/Transforms/Utils/ValueMapper.cpp @@ -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(V);