diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-27 02:18:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-27 02:18:21 +0000 |
commit | 0a65a1441731c5fcf08647e95c9802844da68514 (patch) | |
tree | 7a3e41bd49bd1347054a91fcae13f5d5df2c5957 | |
parent | 3511c70d180f662c8b2b8506d9c6b45a24720098 (diff) | |
download | external_llvm-0a65a1441731c5fcf08647e95c9802844da68514.zip external_llvm-0a65a1441731c5fcf08647e95c9802844da68514.tar.gz external_llvm-0a65a1441731c5fcf08647e95c9802844da68514.tar.bz2 |
merge two ifs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94650 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Linker/LinkModules.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index ac11450..86f3b84 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -404,9 +404,7 @@ static Value *RemapOperand(const Value *In, } else { Result = const_cast<Value*>(In); } - } else if (isa<MDString>(In)) { - Result = const_cast<Value*>(In); - } else if (isa<InlineAsm>(In)) { + } else if (isa<MDString>(In) || isa<InlineAsm>(In)) { Result = const_cast<Value*>(In); } |