================
@@ -149,10 +149,18 @@ def getToolchainSpec(self, compiler):
             "xcrun clang": "xcrun clang++",
         }
         # Determine the C++ compiler based on the given compiler path/command.
-        cxx_type = cxx_types.get(compiler)
-        if cxx_type is None:
+        try:
----------------
DavidSpickett wrote:

I changed this to try except so we do not rely on a None implictly being passed 
on, which happened with the get( calls.

https://github.com/llvm/llvm-project/pull/214199
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to