[Lldb-commits] [PATCH] D51445: Remove undefined behavior around the use of StateType

Adrian Prantl via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 29 13:01:36 PDT 2018


aprantl added inline comments.


================
Comment at: scripts/Python/python-typemaps.swig:89
+      PyErr_SetString(PyExc_ValueError, "Not a valid StateType value");
+      return nullptr ;
+    }
----------------
nice!
There's an extra space before the `;`


================
Comment at: source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp:779
   switch (state) {
+  case kNumStateType:
   case eStateConnected:
----------------
Shouldn't this value trigger an error of sorts in all of these switch statements?



https://reviews.llvm.org/D51445





More information about the lldb-commits mailing list