[llvm] r335207 - Add some explanatory text to the associated symbol support.

Eric Christopher via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 21 00:15:14 PDT 2018


Author: echristo
Date: Thu Jun 21 00:15:14 2018
New Revision: 335207

URL: http://llvm.org/viewvc/llvm-project?rev=335207&view=rev
Log:
Add some explanatory text to the associated symbol support.

Modified:
    llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp

Modified: llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp?rev=335207&r1=335206&r2=335207&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp (original)
+++ llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp Thu Jun 21 00:15:14 2018
@@ -352,7 +352,8 @@ MCSection *TargetLoweringObjectFileELF::
       /*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;
 }
 




More information about the llvm-commits mailing list