提交 db1e9b1d 编写于 作者: Owen Anderson's avatar Owen Anderson 提交者: Facebook Github Bot

Fix a few clang warnings.

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/23524

Differential Revision: D16549562

fbshipit-source-id: 58351fc2858d495b135023626116f6f565c8e9b1
上级 30bc19d7
......@@ -14,7 +14,7 @@
namespace torch {
namespace jit {
class Node;
struct Node;
enum class JitLoggingLevels {
OFF,
......
......@@ -176,7 +176,7 @@ struct PythonPrintPass {
if (auto gen_source = n->sourceRange().findSourceRangeThatGenerated()) {
stack->push_back(std::move(gen_source.value()));
} else {
stack->push_back(std::move(n->sourceRange()));
stack->push_back(n->sourceRange());
}
}
......
......@@ -8,7 +8,7 @@
namespace torch {
namespace jit {
struct SourceRangeUnpickler;
class SourceRangeUnpickler;
struct SourceRange;
// Source represents a code segment. It keeps track of:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册