From: Reid Spencer Date: Sun, 18 Jul 2004 01:04:19 +0000 (+0000) Subject: Shrink some code. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=acc928042daf6912267544a623bdaba3633fec36;p=oota-llvm.git Shrink some code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14956 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 47b4cc83aee..225bd18d859 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -766,10 +766,7 @@ void AssemblyWriter::printGlobal(const GlobalVariable *GV) { if (GV->hasInitializer()) { Constant* C = cast(GV->getInitializer()); assert(C && "GlobalVar initializer isn't constant?"); - if (isa(C)) - writeOperand(GV->getInitializer(), false, true); - else - writeOperand(GV->getInitializer(), false, false); + writeOperand(GV->getInitializer(), false, isa(C)); } printInfoComment(*GV);