[all-commits] [llvm/llvm-project] 522163: Do not trigger UB during AffineExpr parsing. (#96896)
Johannes Reifferscheid via All-commits
all-commits at lists.llvm.org
Thu Jun 27 22:31:54 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 52216349b6faf41351f4bd370439031c416b8f9b
https://github.com/llvm/llvm-project/commit/52216349b6faf41351f4bd370439031c416b8f9b
Author: Johannes Reifferscheid <jreiffers at google.com>
Date: 2024-06-28 (Fri, 28 Jun 2024)
Changed paths:
M llvm/include/llvm/Support/MathExtras.h
M mlir/lib/IR/AffineExpr.cpp
M mlir/unittests/IR/AffineExprTest.cpp
Log Message:
-----------
Do not trigger UB during AffineExpr parsing. (#96896)
Currently, parsing expressions that are undefined will trigger UB during
compilation (e.g. `9223372036854775807 * 2`). This change instead
leaves the expressions as they were.
This change is an NFC for compilations that did not previously involve
UB.
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