[flang-commits] [flang] 0620b12 - [flang] Fix capitalization of "ishft"
Peter Steinfeld via flang-commits
flang-commits at lists.llvm.org
Fri Oct 8 13:44:42 PDT 2021
Author: Peter Steinfeld
Date: 2021-10-08T13:44:23-07:00
New Revision: 0620b12209cf7ccc085db0a574b571d08efc1395
URL: https://github.com/llvm/llvm-project/commit/0620b12209cf7ccc085db0a574b571d08efc1395
DIFF: https://github.com/llvm/llvm-project/commit/0620b12209cf7ccc085db0a574b571d08efc1395.diff
LOG: [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
Added:
Modified:
flang/lib/Evaluate/fold-integer.cpp
Removed:
################################################################################
diff --git a/flang/lib/Evaluate/fold-integer.cpp b/flang/lib/Evaluate/fold-integer.cpp
index e8818082c5cf5..6795f9007e0e1 100644
--- a/flang/lib/Evaluate/fold-integer.cpp
+++ b/flang/lib/Evaluate/fold-integer.cpp
@@ -615,7 +615,7 @@ Expr<Type<TypeCategory::Integer, KIND>> FoldIntrinsicFunction(
// Second argument can be of any kind. However, it must be smaller or
// equal than BIT_SIZE. It can be converted to Int4 to simplify.
auto fptr{&Scalar<T>::ISHFT};
- if (name == "ISHFT") { // done in fptr definition
+ if (name == "ishft") { // done in fptr definition
} else if (name == "shifta") {
fptr = &Scalar<T>::SHIFTA;
} else if (name == "shiftr") {
More information about the flang-commits
mailing list