Its possible that a broken filling could leak and allow bacteria to enter the tooth. The bacteria can travel down into the jawbone area and infect the gums through that route. If thats the case, its possible to get swelling. We call it a dental abscess. Hopefully your dentist fixed everything up and you're feeling better.