Skip to content
Snippets Groups Projects
  • Jakub Jelinek's avatar
    f5224caf
    c: Fix up uninitialized next.original_type use in #embed optimization · f5224caf
    Jakub Jelinek authored
    Jonathan pointed me at a diagnostic from an unnamed static analyzer
    which found that next.original_type isn't initialized for the CPP_EMBED
    case when it is parsed in a comma expression, yet
      expr.original_type = next.original_type;
    is done a few lines later and the expr is returned.
    
    2024-10-16  Jakub Jelinek  <jakub@redhat.com>
    
    	* c-parser.cc (c_parser_expression): Initialize next.original_type
    	to integer_type_node for the CPP_EMBED case.
    f5224caf
    History
    c: Fix up uninitialized next.original_type use in #embed optimization
    Jakub Jelinek authored
    Jonathan pointed me at a diagnostic from an unnamed static analyzer
    which found that next.original_type isn't initialized for the CPP_EMBED
    case when it is parsed in a comma expression, yet
      expr.original_type = next.original_type;
    is done a few lines later and the expr is returned.
    
    2024-10-16  Jakub Jelinek  <jakub@redhat.com>
    
    	* c-parser.cc (c_parser_expression): Initialize next.original_type
    	to integer_type_node for the CPP_EMBED case.