[all-commits] [llvm/llvm-project] db7475: [clang][bytecode] Ignore overflow in unary operato...

Timm Baeder via All-commits all-commits at lists.llvm.org
Sat Mar 22 10:04:12 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: db7475a770c360a42560aa01859d5dcbb808ade8
      https://github.com/llvm/llvm-project/commit/db7475a770c360a42560aa01859d5dcbb808ade8
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2025-03-22 (Sat, 22 Mar 2025)

  Changed paths:
    M clang/lib/AST/ByteCode/Compiler.cpp
    M clang/lib/AST/ByteCode/Interp.h
    M clang/lib/AST/ByteCode/Opcodes.td
    M clang/test/AST/ByteCode/literals.cpp

  Log Message:
  -----------
  [clang][bytecode] Ignore overflow in unary operators if requested (#132557)

Add PreInc and PreDec ops for this purpose and ignore the overflow if
UnaryOperator::canOverflow() returns false.



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