Replace getFirstDecl with getCanonicalDecl