Fix "not all control paths return a value" introduced by D142642
authorMircea Trofin <mtrofin@google.com>
Sat, 28 Jan 2023 01:58:20 +0000 (17:58 -0800)
committerMircea Trofin <mtrofin@google.com>
Sat, 28 Jan 2023 01:59:05 +0000 (17:59 -0800)
llvm/lib/Analysis/TensorSpec.cpp

index d4dc557..8dd1a05 100644 (file)
@@ -119,6 +119,8 @@ std::string tensorValueToString(const char *Buffer, const TensorSpec &Spec) {
   case TensorType::Invalid:
     llvm_unreachable("invalid tensor type");
   }
+  // To appease warnings about not all control paths returning a value.
+  return "";
 }
 
 } // namespace llvm