[PATCH] Fix DWARFContext::getCompileUnitForOffset().

David Blaikie dblaikie at gmail.com
Tue Sep 16 10:38:18 PDT 2014


================
Comment at: lib/DebugInfo/DWARFUnit.h:50
@@ -57,2 +49,3 @@
     bool operator()(uint32_t LHS,
                     const std::unique_ptr<UnitType> &RHS) const {
+      return LHS < RHS->getNextUnitOffset();
----------------
I'm rather surprised if this is the one function that's required. According to the spec, it looks like the specified value is passed as the RHS, not the LHS...

http://reviews.llvm.org/D5262






More information about the llvm-commits mailing list