Skip to content

[llvm-cov][MC/DC] "Branch not found in Decisions" when handling variadic macros #92216

Open
@whentojump

Description

@whentojump
Member

I hit this problem in https://elixir.bootlin.com/linux/v6.1.83/source/kernel/rcu/tasks.h#L1621

A reduced user-space program is:

#define FOO(x, ...) "", ##__VA_ARGS__
#define ZERO 0
int main() { FOO(, 1 && ZERO); }

Compiler explorer link.

Note that despite the same message, this issue should be different than #87000 and with #89869 locally applied I'm still seeing the same problem.

cc @evodius96 @chapuni

Activity

chapuni

chapuni commented on May 15, 2024

@chapuni
Contributor

Would it crash clang if #89572 is applied?

whentojump

whentojump commented on May 22, 2024

@whentojump
MemberAuthor

I will try it very soon. And in general I love this proposal in #89572! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @chapuni@EugeneZelenko@whentojump

        Issue actions

          [llvm-cov][MC/DC] "Branch not found in Decisions" when handling variadic macros · Issue #92216 · llvm/llvm-project