[astgen] Fix two use-after-frees.
[astgen] Fix two use-after-frees.

apple/swift,apple/swift,roambotics/swift,roambotics/swift,apple/swift,roambotics/swift,apple/swift,roambotics/swift,apple/swift,roambotics/swift,roambotics/swift,apple/swift