AMDGPU/clang: Remove dead code
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 4 Aug 2022 02:44:51 +0000 (22:44 -0400)
committerMatt Arsenault <arsenm2@gmail.com>
Thu, 4 Aug 2022 23:02:56 +0000 (19:02 -0400)
commitc5b36ab1d6a667554bf369c34e51d02add039d16
treea9f1e7adc2523e4f821012bdb51d4e4364415a70
parent33171df9cc7f6560dea7b0b162ab51ff97417468
AMDGPU/clang: Remove dead code

The order has to be a constant and should be enforced by the builtin
definition. The fallthrough behavior would have been broken anyway.

There's still an existing issue/assert if you try to use garbage for the
ordering. The IRGen should be broken, but we also hit another assert
before that.

Fixes issue 56832
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/CodeGen/CodeGenFunction.h