Index: lib/Target/TargetLoweringObjectFile.cpp =================================================================== --- lib/Target/TargetLoweringObjectFile.cpp +++ lib/Target/TargetLoweringObjectFile.cpp @@ -58,7 +58,7 @@ const Constant *C = GV->getInitializer(); // Must have zero initializer. - if (!C->isNullValue()) + if (!C->isNullValue() && !isa(C)) return false; // Leave constant zeros in readonly constant sections, so they can be shared.