Fix -Wreturn-type build failure on ASTMatchers, plus an intended assert
Clean up the Legal/Expand logic for SPARC popc.