[all-commits] [llvm/llvm-project] d05483: [clang][Interp] Handle dummy pointers in ArrayElem...

Timm Baeder via All-commits all-commits at lists.llvm.org
Fri Feb 9 07:24:31 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d05483288465a87e75cfab51792801cfee43914c
      https://github.com/llvm/llvm-project/commit/d05483288465a87e75cfab51792801cfee43914c
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2024-02-09 (Fri, 09 Feb 2024)

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

  Log Message:
  -----------
  [clang][Interp] Handle dummy pointers in ArrayElemPtr{,Pop} differently

Instead of returning false, just ignore the operation and return true;
This gives us the desired diagnostic behavior in the added test case.




More information about the All-commits mailing list