probinson added inline comments.

================
Comment at: lib/DebugInfo/DWARF/DWARFDebugLoc.cpp:220
   }
-  return LL;
+  llvm_unreachable("Exit from function inside while loop!");
 }
----------------
dblaikie wrote:
> Given the loop condition is "while (true)" this unreachable seems a bit 
> unnecessary (& the function has non-void return, so if there was a path that 
> got through the loop I imagine the compiler would warn us about that?)
> 
> Or is this working around a compiler that warns here despite the lack of any 
> path out of the loop?
I have had to add llvm_unreachable before in this kind of situation, IIRC, 
which is why I suggested it.  Might not be necessary, if all 3 supported 
toolchains are smart enough nowadays.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63591/new/

https://reviews.llvm.org/D63591



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to