projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00ecf3f
)
Fix "not all control paths return a value" introduced by D142642
author
Mircea Trofin
<mtrofin@google.com>
Sat, 28 Jan 2023 01:58:20 +0000
(17:58 -0800)
committer
Mircea Trofin
<mtrofin@google.com>
Sat, 28 Jan 2023 01:59:05 +0000
(17:59 -0800)
llvm/lib/Analysis/TensorSpec.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/TensorSpec.cpp
b/llvm/lib/Analysis/TensorSpec.cpp
index
d4dc557
..
8dd1a05
100644
(file)
--- a/
llvm/lib/Analysis/TensorSpec.cpp
+++ b/
llvm/lib/Analysis/TensorSpec.cpp
@@
-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