In a heatproof bowl, whisk together sugar and egg whites by hand. Place bowl over a saucepan of simmering water. Cook, whisking occasionally, until an instant-read thermometer registers 160°F (71°C).
Carefully transfer sugar mixture to the bowl of a stand mixer fitted with the whisk attachment. Beat at high speed until stiff peaks form and bowl is cool to the touch, 7 to 8 minutes. Add butter, 2 tablespoons (28 grams) at a time, beating until combined after each addition. (If buttercream breaks, beat for 2 to 3 minutes, and emulsion will come back together.)
Add vanilla and salt, and beat at medium speed until combined. Add melted chocolate, beating just until combined. Use immediately, or refrigerate in an airtight container for up to 3 days. If refrigerated, let come to room temperature and rewhip before using.