aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2020-10-01 14:35:11 -0700
committerMircea Trofin <mtrofin@google.com>2020-10-03 13:18:25 -0700
commit0a3523299dec61f2e6eb2a28fdecd25360e8b6d8 (patch)
tree1b6335a91d9dc10de61578c7f7c6db8d3242c415 /clang/lib/CodeGen/CodeGenFunction.cpp
parent508ac0ec13c1c56029fd2390a2e14c1b2ea84b73 (diff)
downloadllvm-0a3523299dec61f2e6eb2a28fdecd25360e8b6d8.zip
llvm-0a3523299dec61f2e6eb2a28fdecd25360e8b6d8.tar.gz
llvm-0a3523299dec61f2e6eb2a28fdecd25360e8b6d8.tar.bz2
[MC] Assert that MCRegUnitIterator operates over MCRegisters
The signature of the ctor expects a MCRegister, but currently any unsigned value can be converted to a MCRegister. This patch checks that indeed the provided value is a physical register only. We want to eventually stop implicitly converting unsigned or Register to MCRegister (which is incorrect). The next step after this patch is changing uses of MCRegUnitIterator to explicitly cast Register or unsigned values to MCRegister. To that end, this patch also introduces 2 APIs that make that conversion checked and explicit. Differential Revision: https://reviews.llvm.org/D88705
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions