[PATCH] Fix DWARFContext::getCompileUnitForOffset().

Alexey Samsonov vonosmas at gmail.com
Wed Sep 10 17:50:39 PDT 2014


================
Comment at: lib/DebugInfo/DWARFContext.cpp:415
@@ -415,2 +414,3 @@
+      std::upper_bound(CUs.begin(), CUs.end(), Offset, OffsetComparator());
   if (CU != CUs.end()) {
     return CU->get();
----------------
You still need to check that Offset you're looking for is inside the CU.

http://reviews.llvm.org/D5262






More information about the llvm-commits mailing list