From c06c8d8c06d936025bdcd942e728cf78c855b178 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 23 Jan 2006 23:06:28 +0000 Subject: [PATCH] When cloning a module, clone the inline asm. llvm-svn: 25559 --- lib/Transforms/Utils/CloneModule.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Transforms/Utils/CloneModule.cpp b/lib/Transforms/Utils/CloneModule.cpp index 324e00aaa8c..1cab1587856 100644 --- a/lib/Transforms/Utils/CloneModule.cpp +++ b/lib/Transforms/Utils/CloneModule.cpp @@ -31,6 +31,7 @@ Module *llvm::CloneModule(const Module *M) { New->setEndianness(M->getEndianness()); New->setPointerSize(M->getPointerSize()); New->setTargetTriple(M->getTargetTriple()); + New->setInlineAsm(M->getInlineAsm()); // Copy all of the type symbol table entries over. const SymbolTable &SymTab = M->getSymbolTable();