silence unreachable code warnings (#15036)
authorRoy Li <royboy@fb.com>
Tue, 11 Dec 2018 21:06:11 +0000 (13:06 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 11 Dec 2018 21:09:04 +0000 (13:09 -0800)
Summary:
Stack:
&nbsp;&nbsp;&nbsp;&nbsp;:black_circle:&nbsp; **#15036 silence unreachable code warnings**&nbsp;&nbsp;[:yellow_heart:](https://our.intern.facebook.com/intern/diff/D13411100/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15036

Differential Revision: D13414712

Pulled By: li-roy

fbshipit-source-id: d4aa84571fa94c66f3c5bfa9575a10c6ee398f9e

aten/src/ATen/core/jit_type.h

index bb495fc..9971551 100644 (file)
@@ -901,7 +901,6 @@ TypePtr getTypePtr() {
       " could not be converted to any of the known types { ",
       C10_FORALL_TYPES(TYPE_STR) "}");
 #undef TYPE_STR
-  return nullptr;
 }
 
 template<> inline TypePtr getTypePtr<at::Tensor>() { return DynamicType::get(); }