diff options
author | Craig Topper <craig.topper@gmail.com> | 2020-05-17 14:57:04 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2020-05-17 14:57:50 -0700 |
commit | 5f65faef2c61bfb5e041f74db61665f43a05e9db (patch) | |
tree | 6ec2731f0c50863fc2591e52b0ec2e8f16d41cf3 /llvm/lib/Transforms/Utils/ValueMapper.cpp | |
parent | 37ce8d6ade24b2fb9f332b5ff94c25b40f1fc701 (diff) | |
download | llvm-5f65faef2c61bfb5e041f74db61665f43a05e9db.zip llvm-5f65faef2c61bfb5e041f74db61665f43a05e9db.tar.gz llvm-5f65faef2c61bfb5e041f74db61665f43a05e9db.tar.bz2 |
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
Diffstat (limited to 'llvm/lib/Transforms/Utils/ValueMapper.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/ValueMapper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/ValueMapper.cpp b/llvm/lib/Transforms/Utils/ValueMapper.cpp index 3c55df2..f1b3fe8e 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<Value *>(V); |