aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2015-09-12 00:08:21 +0000
committerHal Finkel <hfinkel@anl.gov>2015-09-12 00:08:21 +0000
commit62cfd01270536bf865b4f3da42627832848d212c (patch)
treec369a22fc5d0ff7b04fcf0d6861e8764b1dfdd42 /clang/lib/CodeGen/CodeGenModule.cpp
parent67037ee21e95804528ecb559980ad9d35ba2eed1 (diff)
downloadllvm-62cfd01270536bf865b4f3da42627832848d212c.zip
llvm-62cfd01270536bf865b4f3da42627832848d212c.tar.gz
llvm-62cfd01270536bf865b4f3da42627832848d212c.tar.bz2
Move asserts from PHINode::addIncoming to PHINode::setIncoming*
We had asserts in PHINode::addIncoming to check that the value types matched the type of the PHI, and that the associated BB was not null. These did not catch, however, later uses of setIncomingValue and setIncomingBlock (which are called by addIncoming as well). Moving the asserts to PHINode::setIncoming* provides better coverage. NFC. llvm-svn: 247492
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions