merge two ifs
authorChris Lattner <sabre@nondot.org>
Wed, 27 Jan 2010 02:18:21 +0000 (02:18 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 27 Jan 2010 02:18:21 +0000 (02:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94650 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Linker/LinkModules.cpp

index ac11450dc3415d2d79493e8c4d42de58522ff03e..86f3b84f1d767b25c69939f8031d8a5916554548 100644 (file)
@@ -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);
   }