static void revertDependentTypeLoc(TypeLoc &tl) { // If there's no type representation, there's nothing to revert. if (!tl.getTypeRepr()) return; // Don't revert an error type; we've already complained. if (tl.wasValidated() && tl.isError()) return; // Make sure we validate the type again. tl.setType(Type()); }