[all-commits] [llvm/llvm-project] 00e967: [clang][Interp] Fix left-/right-shifting more than...
Timm Bäder via All-commits
all-commits at lists.llvm.org
Wed Jan 25 22:07:51 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 00e967f6c2d626d1913f5af5763beab7946978ce
https://github.com/llvm/llvm-project/commit/00e967f6c2d626d1913f5af5763beab7946978ce
Author: Timm Bäder <tbaeder at redhat.com>
Date: 2023-01-26 (Thu, 26 Jan 2023)
Changed paths:
M clang/lib/AST/Interp/Integral.h
M clang/lib/AST/Interp/Interp.h
M clang/test/AST/Interp/shifts.cpp
Log Message:
-----------
[clang][Interp] Fix left-/right-shifting more than sizeof(unsigned)
We were just casting to `unsigned` before, so that caused problems when
shifting more bits than `unsigned` has.
Differential Revision: https://reviews.llvm.org/D140845
More information about the All-commits
mailing list