2 Commits

Author SHA1 Message Date
Vedant Kumar
eb37a3e6fa Tighten up a test for -check-debugify, NFC
Use an -implicit-check-not to make sure an error which should not occur
in fact does not occur before the first CHECK line.

Suggested by Paul Robinson in post-commit feedback for r335897.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336123 91177308-0d34-0410-b5e6-96231b3b80d8
2018-07-02 17:08:36 +00:00
Vedant Kumar
3d7cc9ef30 [Debugify] Do not report line 0 locations as errors
The checking logic should not treat artificial locations as being
somehow problematic. Producing these locations can be the desired
behavior of some passes.

See llvm.org/PR37961.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335897 91177308-0d34-0410-b5e6-96231b3b80d8
2018-06-28 18:21:11 +00:00