[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[csmith-project/creduce] b98d8b: Fixed a crash on macro expansions on EnumConstantD...



  Branch: refs/heads/master
  Home:   https://github.com/csmith-project/creduce
  Commit: b98d8bf0b53c51b71f6de82fdc2c8ae45b07f37a
      https://github.com/csmith-project/creduce/commit/b98d8bf0b53c51b71f6de82fdc2c8ae45b07f37a
  Author: Yang Chen <chenyang@cs.utah.edu>
  Date:   2015-12-06 (Sun, 06 Dec 2015)

  Changed paths:
    M clang_delta/RemoveUnusedEnumMember.cpp
    M clang_delta/RemoveUnusedEnumMember.h

  Log Message:
  -----------
  Fixed a crash on macro expansions on EnumConstantDecl

We can have macro expansions on an enum's constant decls.
We should check if the decl's EndLoc is from macro before
remove it.