Bug ID: 41774
           Summary: GetFullTypeForDeclarator - ExpectNoDerefChunk assigned
                    twice successively
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: libclang
            Blocks: 41655

rL348442 sets the ExpectNoDerefChunk value twice successively:

    if (DeclType.Kind != DeclaratorChunk::Paren) {
      if (ExpectNoDerefChunk) {
        if (!IsNoDerefableChunk(DeclType))
          S.Diag(DeclType.Loc, diag::warn_noderef_on_non_pointer_or_array);
        ExpectNoDerefChunk = false;

      ExpectNoDerefChunk = state.didParseNoDeref();

Reported in (Snippets No. 27).

Referenced Bugs:
[Bug 41655] Finding Bugs in LLVM 8 with PVS-Studio
You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list

Reply via email to