[llvm-branch-commits] [llvm] 2dc664d - ValueMapper does not preserve inline assembly dialect when remapping the type

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jun 11 16:10:18 PDT 2020


Author: Craig Topper
Date: 2020-06-11T16:09:24-07:00
New Revision: 2dc664d578f0e9c8ea5975eed745e322fa77bffe

URL: https://github.com/llvm/llvm-project/commit/2dc664d578f0e9c8ea5975eed745e322fa77bffe
DIFF: https://github.com/llvm/llvm-project/commit/2dc664d578f0e9c8ea5975eed745e322fa77bffe.diff

LOG: 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

(cherry picked from commit 5f65faef2c61bfb5e041f74db61665f43a05e9db)

Added: 
    

Modified: 
    llvm/lib/Transforms/Utils/ValueMapper.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Utils/ValueMapper.cpp b/llvm/lib/Transforms/Utils/ValueMapper.cpp
index da68d3713b40..d6b01a12b937 100644
--- a/llvm/lib/Transforms/Utils/ValueMapper.cpp
+++ b/llvm/lib/Transforms/Utils/ValueMapper.cpp
@@ -369,7 +369,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);


        


More information about the llvm-branch-commits mailing list