[all-commits] [llvm/llvm-project] ef9666: [clang][Interp] Fix value truncation when casting ...
Timm Baeder via All-commits
all-commits at lists.llvm.org
Mon Oct 2 21:05:57 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ef9666aa81abdbcff54448446ba1f6fffe5fa45c
https://github.com/llvm/llvm-project/commit/ef9666aa81abdbcff54448446ba1f6fffe5fa45c
Author: Timm Baeder <tbaeder at redhat.com>
Date: 2023-10-03 (Tue, 03 Oct 2023)
Changed paths:
M clang/lib/AST/Interp/IntegralAP.h
M clang/test/AST/Interp/literals.cpp
Log Message:
-----------
[clang][Interp] Fix value truncation when casting int128 to smaller size (#67961)
Before this patch, we would run into an assertion in
`APInt::get{S,Z}ExtValue()` because the `AllOnes` value had more than 64
active bits.
More information about the All-commits
mailing list