does bismuth subsalicylate help stomach ulcer?

I'm confused here, does bismuth subsalicylate help protect the stomach ulcer from further dmg and also help in healing? The reasons I ask is because I have ulcer in stomach due to endoscopy and now waiting for 2 weeks for the biopsy result of h pylori or not. If I do have h pylori, I see ppl use the quadruple therapy which include bismuth, but when I check on the pepto bimol (bismuth), the direction says don't use when have ulcer. Then, I called my GI doctor and he said I can. Which is right here?