Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit d470b80

Browse files
Merge pull request #256 from facebookresearch/pr/unused
tc_format.cc: avoid unused variable warning
2 parents 26f73cf + 3782a2c commit d470b80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lang/tc_format.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void showExpr(std::ostream& s, const TreeRef& expr) {
117117
case TK_CONST: {
118118
Const con{expr};
119119
int scalarType = con.type()->kind();
120-
switch (con.type()->kind()) {
120+
switch (scalarType) {
121121
case TK_FLOAT:
122122
case TK_DOUBLE:
123123
s << con.value();

0 commit comments

Comments
 (0)