If Heirloom Blade leaves the battlefield at the same time that the equipped creature dies, its triggered ability triggers.

Artwork
Loading artwork…
Heirloom Blade
The Lost Caverns of Ixalan Commander · #303 · EN
Nonfoil—Foil—
Card rules
Equipped creature gets +3/+1.
Whenever equipped creature dies, you may reveal cards from the top of your library until you reveal a creature card that shares a creature type with it. Put that card into your hand and the rest on the bottom of your library in a random order.
Equip 1
Uncommon · Illustrated by Carmen Sinek
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
You'll reveal cards until you find one that shares at least one creature type with the creature that died. For example, if a Cat Wizard dies, you'll stop if you reveal a Human Wizard or Cat Soldier.
If the equipped creature has no creature type, no card can share a creature type with it.
"Artifact" isn't a creature type.
Compare the revealed cards to the creature as it last existed before it died, not to the creature card as it exists in its owner's graveyard, to determine which one you put into your hand.
If you don't reveal a creature card that shares a type with the creature that died, you'll just reveal and randomize your library.