OSDN Git Service

Add some explanatory text to the associated symbol support.
authorEric Christopher <echristo@gmail.com>
Thu, 21 Jun 2018 07:15:14 +0000 (07:15 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 21 Jun 2018 07:15:14 +0000 (07:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335207 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetLoweringObjectFileImpl.cpp

index b07e2f6..03a1f62 100644 (file)
@@ -352,7 +352,8 @@ MCSection *TargetLoweringObjectFileELF::getExplicitSectionGlobal(
       /*EntrySize=*/0, Group, UniqueID, AssociatedSymbol);
   // Make sure that we did not get some other section with incompatible sh_link.
   // This should not be possible due to UniqueID code above.
-  assert(Section->getAssociatedSymbol() == AssociatedSymbol);
+  assert(Section->getAssociatedSymbol() == AssociatedSymbol &&
+         "Associated symbol mismatch between sections");
   return Section;
 }