[all-commits] [llvm/llvm-project] 360e4a: [clang][bytecode] Diagnose comparisons with litera...

Timm Baeder via All-commits all-commits at lists.llvm.org
Fri Aug 30 21:24:58 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 360e4abfc8c7298283041e8f5a07f1829a888d18
      https://github.com/llvm/llvm-project/commit/360e4abfc8c7298283041e8f5a07f1829a888d18
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2024-08-31 (Sat, 31 Aug 2024)

  Changed paths:
    M clang/lib/AST/ByteCode/Compiler.cpp
    M clang/lib/AST/ByteCode/Interp.h
    M clang/lib/AST/ByteCode/MemberPointer.h
    M clang/lib/AST/ByteCode/Opcodes.td
    M clang/lib/AST/ByteCode/Pointer.cpp
    M clang/lib/AST/ByteCode/Pointer.h
    M clang/test/AST/ByteCode/builtin-functions.cpp
    M clang/test/AST/ByteCode/weak.cpp

  Log Message:
  -----------
  [clang][bytecode] Diagnose comparisons with literals (#106734)

This requires adding a new opcode for PointerToBoolean casts, since we
otherwise emit too many diagnostics. But that fixes an older problem
when casting weak pointers to bool.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list