diff options
-rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index 2c9a77c834f..b3f8db7c423 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -334,10 +334,7 @@ static void WriteConstantInt(ostream &Out, const Constant *CV, bool PrintName, } } else if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV)) { - Out << CE->getOpcodeName(); - - bool isGEP = CE->getOpcode() == Instruction::GetElementPtr; - Out << " ("; + Out << CE->getOpcodeName() << " ("; for (User::const_op_iterator OI=CE->op_begin(); OI != CE->op_end(); ++OI) { printTypeInt(Out, (*OI)->getType(), TypeTable); |