[all-commits] [llvm/llvm-project] ba11d3: [clang][Interp] Only diagnose null field access in...

Timm Baeder via All-commits all-commits at lists.llvm.org
Thu Oct 26 07:15:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ba11d314a67638454989d4e0aebae64145d1a8ac
      https://github.com/llvm/llvm-project/commit/ba11d314a67638454989d4e0aebae64145d1a8ac
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2023-10-26 (Thu, 26 Oct 2023)

  Changed paths:
    M clang/lib/AST/Interp/Interp.cpp
    M clang/lib/AST/Interp/Interp.h
    M clang/lib/AST/Interp/Pointer.h
    M clang/test/AST/Interp/c.c
    M clang/test/AST/Interp/records.cpp

  Log Message:
  -----------
  [clang][Interp] Only diagnose null field access in constant contexts (#69223)

Looks like this should work as long as we don't dereference the value.




More information about the All-commits mailing list