commit | b0ab6f767f69c39b45c7e8f847fa9783a92cb963 | [log] [tgz] |
---|---|---|
author | Marcello Maggioni <hayarms@gmail.com> | Mon Aug 20 19:23:45 2018 +0000 |
committer | Marcello Maggioni <hayarms@gmail.com> | Mon Aug 20 19:23:45 2018 +0000 |
tree | 417b94a00bcafcb5faf9181e07cc526be1167f9b | |
parent | 3de8077a9400e585188b55d5052669a498b42a47 [diff] |
[PSV] Update API to be able to use TargetCustom without UB. getTargetCustom() requires values for "Kind" in the constructor that are not in the PSVKind enum. Passing a value that is not inside an enum as an argument to a constructor of the type of the enum is UB. Changing to the underlying type of the enum would solve the UB Differential Revision: https://reviews.llvm.org/D50909 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340200 91177308-0d34-0410-b5e6-96231b3b80d8