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 | 8cb92c22f030025e2838ee3e32e7a27ebb06768e (patch) | |
tree | 7a3e41bd49bd1347054a91fcae13f5d5df2c5957 /lib/Linker/LinkModules.cpp | |
parent | c81f9cb6f70b624567cbbd96d7e0dcb131c4464f (diff) | |
download | external_llvm-8cb92c22f030025e2838ee3e32e7a27ebb06768e.zip external_llvm-8cb92c22f030025e2838ee3e32e7a27ebb06768e.tar.gz external_llvm-8cb92c22f030025e2838ee3e32e7a27ebb06768e.tar.bz2 |
merge two ifs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94650 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker/LinkModules.cpp')
-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); } |