[flang] Fix an ambiguous overload error
authorIsuru Fernando <isuruf@gmail.com>
Wed, 26 Feb 2020 18:05:28 +0000 (12:05 -0600)
committerIsuru Fernando <isuruf@gmail.com>
Thu, 5 Mar 2020 15:19:11 +0000 (09:19 -0600)
Original-commit: flang-compiler/f18@70fa71ff7be3024a44b8214be663b9701adc5b1f
Reviewed-on: https://github.com/flang-compiler/f18/pull/1029

flang/include/flang/Parser/dump-parse-tree.h

index d132e93..818dfbd 100644 (file)
@@ -784,7 +784,7 @@ protected:
         std::is_same_v<T, std::int64_t> || std::is_same_v<T, std::uint64_t>) {
       ss << x;
     }
-    if (ss.tellp() != 0) {
+    if (ss.tellp()) {
       return ss.str();
     }
     if constexpr (std::is_same_v<T, Name> || HasSource<T>::value) {