[all-commits] [llvm/llvm-project] 193866: [tblgen] Fix behavior of !isa to prevent premature...
Krzysztof Drewniak via All-commits
all-commits at lists.llvm.org
Tue Mar 18 20:05:58 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 193866bc243ec466a6354a6c5d8ad8193157fe90
https://github.com/llvm/llvm-project/commit/193866bc243ec466a6354a6c5d8ad8193157fe90
Author: Krzysztof Drewniak <krzysdrewniak at gmail.com>
Date: 2025-03-18 (Tue, 18 Mar 2025)
Changed paths:
M llvm/lib/TableGen/Record.cpp
A llvm/test/TableGen/isa-non-primary.td
Log Message:
-----------
[tblgen] Fix behavior of !isa to prevent premature folding (#130442)
The test included with this commit shows a case where, even though a
record's true type was !isa<> some unrelated class, the isa<> operator
wolud use the declared type of the argument it was examining in order to
conclude that the !isa<> expression had to be be false.
The issues is fixed by checking to make sure that the argument to the
!isa operator is fully concrete before declaring its result to be false.
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