[llvm] be935f2 - [NFC][Verifier] Fixup token PHINode test cases

Jordan Rupprecht via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 27 16:16:36 PDT 2021


Looks like this causes failures in release builds. I don't have a buildbot
link yet; I noticed this running tests locally. Reproduced directly:

$ bin/llvm-as ~/src/llvm-project/llvm/test/Verifier/token1.ll -o /dev/null
bin/llvm-as: assembly parsed, but does not verify as correct!
Function takes token but isn't an intrinsic
token %A
void (token, token)* @f
PHI nodes cannot have token type!

$ echo $?
1

I guess it's not actually crashing, just returning a bad error code.

On Tue, Apr 27, 2021 at 1:10 PM Roman Lebedev via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

>
> Author: Roman Lebedev
> Date: 2021-04-27T21:09:43+03:00
> New Revision: be935f28888cbfe705699fa3beb8b849aa0f9f90
>
> URL:
> https://github.com/llvm/llvm-project/commit/be935f28888cbfe705699fa3beb8b849aa0f9f90
> DIFF:
> https://github.com/llvm/llvm-project/commit/be935f28888cbfe705699fa3beb8b849aa0f9f90.diff
>
> LOG: [NFC][Verifier] Fixup token PHINode test cases
>
> It would still pass in non-assert build,
> but with asserts it would now crash.
>
> I haven't checked, but hopefully `not`'s `--crash` argument
> should be enough to support both paths.
>
> Added:
>
>
> Modified:
>     llvm/test/Verifier/token1.ll
>
> Removed:
>
>
>
>
> ################################################################################
> diff  --git a/llvm/test/Verifier/token1.ll b/llvm/test/Verifier/token1.ll
> index ac7ff30948ea..90d48832f2bb 100644
> --- a/llvm/test/Verifier/token1.ll
> +++ b/llvm/test/Verifier/token1.ll
> @@ -1,4 +1,4 @@
> -; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
> +; RUN: not --crash llvm-as %s -o /dev/null 2>&1 | FileCheck %s
>
>  define void @f(token %A, token %B) {
>  entry:
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210427/422efac3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4002 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210427/422efac3/attachment.bin>


More information about the llvm-commits mailing list