It turns out this didn't need to be a template at all.
Likewise, change callers to they're non-template functions.
Also, correct / clarify some comments in RecordOps.h.
This is in response to post-commit comments on https://reviews.llvm.org/D153006.
I don't quite understand your comment from the previous patch:
I don't see another checkDataflow() function with the same signature. Furthermore, checkDataflow() overloads above already return an llvm::Error.