Commit a8c462ed authored by Harris Hancock's avatar Harris Hancock

Remove superfluous downcast in Filesystem API

Instantiating kj::downcast<T, T>() causes a compile failure with -Werror=address because the compiler knows the dynamic_cast check in downcast() can never fail.
parent 2a8a7095
......@@ -1058,7 +1058,7 @@ inline String PathPtr::toNativeString(bool absolute) const {
}
#endif // _WIN32, else
inline Own<const FsNode> FsNode::clone() const { return cloneFsNode().downcast<const FsNode>(); }
inline Own<const FsNode> FsNode::clone() const { return cloneFsNode(); }
inline Own<const ReadableFile> ReadableFile::clone() const {
return cloneFsNode().downcast<const ReadableFile>();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment