Fix logic error in check() function.

llvm-svn: 274195
1 file changed