[all-commits] [llvm/llvm-project] 36a2d7: [AsmWriter] Combine IsConstant and GetConstant (NF...
JP Hafer via All-commits
all-commits at lists.llvm.org
Mon Mar 3 13:04:30 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 36a2d7bf1bd91f4c611c60708f8637bff18ecdbc
https://github.com/llvm/llvm-project/commit/36a2d7bf1bd91f4c611c60708f8637bff18ecdbc
Author: JP Hafer <146973677+jph-13 at users.noreply.github.com>
Date: 2025-03-03 (Mon, 03 Mar 2025)
Changed paths:
M llvm/lib/IR/AsmWriter.cpp
Log Message:
-----------
[AsmWriter] Combine IsConstant and GetConstant (NFCI) (#129288)
There was an assert in GetConstant checked if Bound is constant.
However, GetConstant was only called when IsConstant==true.
This refactor attempts to get rid of the assert by combining GetConstant
and IsContstant.
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