X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FTarget%2FELFTargetAsmInfo.cpp;h=19e5b011945acd53de254cbb4d70cefac0aaf974;hp=e6a40e7cec5b9dbc5aa5dac33683627fa97f8bbb;hb=1e27da3e6c19ebb6fb789edc0d678cf621f1a46e;hpb=0f3cc657387d44cd7c56e4ddea896a50ab9106b8 diff --git a/lib/Target/ELFTargetAsmInfo.cpp b/lib/Target/ELFTargetAsmInfo.cpp index e6a40e7cec5..19e5b011945 100644 --- a/lib/Target/ELFTargetAsmInfo.cpp +++ b/lib/Target/ELFTargetAsmInfo.cpp @@ -130,6 +130,8 @@ ELFTargetAsmInfo::MergeableStringSection(const GlobalVariable *GV) const { unsigned Size = TD->getABITypeSize(Ty); if (Size <= 16) { + assert(getCStringSection() && "Should have string section prefix"); + // We also need alignment here const TargetData *TD = ETM->getTargetData(); unsigned Align = TD->getPrefTypeAlignment(Ty);