From 318b489d5bc49ebc8354982089c78d4fbe5f2953 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 27 Jan 2010 02:18:21 +0000 Subject: [PATCH] merge two ifs llvm-svn: 94650 --- llvm/lib/Linker/LinkModules.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp index ac11450dc341..86f3b84f1d76 100644 --- a/llvm/lib/Linker/LinkModules.cpp +++ b/llvm/lib/Linker/LinkModules.cpp @@ -404,9 +404,7 @@ static Value *RemapOperand(const Value *In, } else { Result = const_cast(In); } - } else if (isa(In)) { - Result = const_cast(In); - } else if (isa(In)) { + } else if (isa(In) || isa(In)) { Result = const_cast(In); }