Skip to content

Commit

Permalink
Update TypeAnalysis.cpp (#1921)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuseZ4 authored Jun 11, 2024
1 parent cd6f629 commit b524cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enzyme/Enzyme/TypeAnalysis/TypeAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ void getConstantAnalysis(Constant *Val, TypeAnalyzer &TA,

// Constants explicitly marked as negative that aren't -1 are considered
// integral
if (ci->isNegative() && ci->getSExtValue() < -1) {
if (ci->isNegative() && !ci->isMinusOne()) {
analysis[Val].insert({-1}, BaseType::Integer);
return;
}
Expand Down

0 comments on commit b524cb2

Please sign in to comment.