[Chapel Merge] Close a leak in an LLVM test, strengthen its predi

Branch: refs/heads/master
Revision: c2ecada
Author: e-kayrakli
Log Message:

Merge pull request #17665 from e-kayrakli/close-tbaa-leak

Close a leak in an LLVM test, strengthen its prediff

test/llvm/tbaa/tbaa_scalar.chpl used to leak because of a trivial error. This
PR fixes that.

But more importantly, we weren't able to get leak errors in the nightly testing
but were able to see the increase in leaks in the plots. This was because of the
PREDIFF in the directory is using FileCheck tool from the LLVM suite which
only looks for matching patterns and seemingly ignores other stuff. And so the
memory leak table that we print at the exit of the application was simply being
ignored by the PREDIFF.

This PR adjusts the PREDIFF to propagate any leaks in the test to prevent future
slips in this test (as unlikely as it may be)

With this PR, test/llvm/tbaa/ passes with and without -memLeaks

[Reviewed by @mppf]

Modified Files:
M test/llvm/PREDIFF

M test/llvm/tbaa/tbaa_scalar.chpl

Compare: https://github.com/chapel-lang/chapel/compare/0be52babdb23...c2ecada6a209