diff options
author | Mikhail R. Gadelha <mikhail@igalia.com> | 2024-07-11 16:43:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-11 11:43:48 -0300 |
commit | dffa28fa3a907a3e0c64c9b06a46b55fc5cea40a (patch) | |
tree | afbabf5ad7583381b34444d589e8217680c7d3e1 /llvm/unittests/TargetParser/TargetParserTest.cpp | |
parent | 4a9de115bfbb083144761b48157c3b51a96e5fd5 (diff) | |
download | llvm-dffa28fa3a907a3e0c64c9b06a46b55fc5cea40a.zip llvm-dffa28fa3a907a3e0c64c9b06a46b55fc5cea40a.tar.gz llvm-dffa28fa3a907a3e0c64c9b06a46b55fc5cea40a.tar.bz2 |
[libc] Fix BigInt's operator %= (#98484)
This patch fixes cases where we try to do var %= 1. Previously this operator was calling .div directly since it would perform the inplace division and return the remainder, however, as an early exit condition a division by one returns zero as the remainder. The remainder being returned by div was not being assigned to var.
Diffstat (limited to 'llvm/unittests/TargetParser/TargetParserTest.cpp')
0 files changed, 0 insertions, 0 deletions