================
@@ -5658,10 +5658,27 @@ bool LLParser::parseDISubprogram(MDNode *&Result, bool 
IsDistinct) {
   OPTIONAL(retainedNodes, MDField, );                                          
\
   OPTIONAL(thrownTypes, MDField, );                                            
\
   OPTIONAL(annotations, MDField, );                                            
\
+  OPTIONAL(shortBacktrace, MDSignedField, (-1, -1, 2));                        
\
   OPTIONAL(targetFuncName, MDStringField, );
   PARSE_MD_FIELDS();
 #undef VISIT_MD_FIELDS
 
+  std::optional<ShortBacktraceAttr> parsedShortBacktrace;
+  switch (shortBacktrace.Val) {
+  case -1:
+    parsedShortBacktrace = std::nullopt;
----------------
DianQK wrote:

This requires a debug assertion.

https://github.com/llvm/llvm-project/pull/123683
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to