Skip to content

Commit 6db3b81

Browse files
committed
[flang] Fix capitalization of "ishft"
We weren't recognizing the ISHFT intrinsic because the code had incorrectly capitalized it. Differential Revision: https://reviews.llvm.org/D111449
1 parent 4577ea9 commit 6db3b81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Evaluate/fold-integer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ Expr<Type<TypeCategory::Integer, KIND>> FoldIntrinsicFunction(
442442
// Second argument can be of any kind. However, it must be smaller or
443443
// equal than BIT_SIZE. It can be converted to Int4 to simplify.
444444
auto fptr{&Scalar<T>::ISHFT};
445-
if (name == "ISHFT") { // done in fptr definition
445+
if (name == "ishft") { // done in fptr definition
446446
} else if (name == "shifta") {
447447
fptr = &Scalar<T>::SHIFTA;
448448
} else if (name == "shiftr") {

0 commit comments

Comments
 (0)