[Attributor][NFCI] Avoid a temporary vector and exit early
authorJohannes Doerfert <johannes@jdoerfert.de>
Fri, 3 Feb 2023 09:40:36 +0000 (01:40 -0800)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 10 Feb 2023 17:56:09 +0000 (11:56 -0600)
commit8bc0bee2f8caec1da5575917fb15a1f66bb0a1d5
tree81642aa9e35eb5b0b987491f7d4062961b378aa3
parent91e38bc7601056d2b7e3ba80a935f6b9999dd78f
[Attributor][NFCI] Avoid a temporary vector and exit early

This change simply avoids the temporary vector and processes the elments
right away.
llvm/lib/Transforms/IPO/AttributorAttributes.cpp