sv_binutils: fix _missing_ enum method
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Sun, 23 Jan 2022 11:02:02 +0000 (11:02 +0000)
committerDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Sun, 23 Jan 2022 11:02:02 +0000 (11:02 +0000)
src/openpower/sv/sv_binutils.py

index 728a28158e053c001ae589b1f09a453ee6aa1fc6..9875d00b82e7e3ab3493f9b2a2d981078936bad2 100644 (file)
@@ -226,7 +226,7 @@ class Codegen(_enum.Enum):
         return {
             "ppc-svp64.h": Codegen.PPC_SVP64_H,
             "ppc-svp64-opc.c": Codegen.PPC_SVP64_OPC_C,
-        }[value]
+        }.get(value)
 
     def __str__(self):
         return {