[all-commits] [llvm/llvm-project] 8b6362: [clang][extract-api] Undefining macros should not ...

Daniel Grumberg via All-commits all-commits at lists.llvm.org
Tue Apr 5 03:43:25 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b63622b9fd9ad2a86487da6098b7a4351d3e8eb
      https://github.com/llvm/llvm-project/commit/8b63622b9fd9ad2a86487da6098b7a4351d3e8eb
  Author: Daniel Grumberg <dgrumberg at apple.com>
  Date:   2022-04-05 (Tue, 05 Apr 2022)

  Changed paths:
    M clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
    M clang/test/ExtractAPI/macro_undefined.c

  Log Message:
  -----------
  [clang][extract-api] Undefining macros should not result in a crash

This fixes the situation where a undefining a not previously defined
macro resulted in a crash. Before trying to remove a definition from
PendingMacros we first check to see if the macro did indeed have a
previous definition.

Differential Revision: https://reviews.llvm.org/D123056




More information about the All-commits mailing list