forked from OSchip/llvm-project
parent
7c6b3d17f0
commit
c9c90cfb29
|
@ -766,10 +766,7 @@ void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
|
|||
if (GV->hasInitializer()) {
|
||||
Constant* C = cast<Constant>(GV->getInitializer());
|
||||
assert(C && "GlobalVar initializer isn't constant?");
|
||||
if (isa<GlobalValue>(C))
|
||||
writeOperand(GV->getInitializer(), false, true);
|
||||
else
|
||||
writeOperand(GV->getInitializer(), false, false);
|
||||
writeOperand(GV->getInitializer(), false, isa<GlobalValue>(C));
|
||||
}
|
||||
|
||||
printInfoComment(*GV);
|
||||
|
|
Loading…
Reference in New Issue