summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2015-07-15 01:31:23 +0000
committerPete Cooper <peter_cooper@apple.com>2015-07-15 01:31:23 +0000
commita8127d8c928dfab4509c7208566afef293eec7b4 (patch)
tree4a804c30d61266f0632514f07f2c014ed368209b /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
parent20dc71b1f1a0824fedf244f96c499f90a38a0c8e (diff)
downloadbcm5719-llvm-a8127d8c928dfab4509c7208566afef293eec7b4.tar.gz
bcm5719-llvm-a8127d8c928dfab4509c7208566afef293eec7b4.zip
Use cast<> instead of dyn_cast to remove llvm_unreachable. NFC.
This code was checking if we are an ICmpInst or FCmpInst then throwing unreachable if we are neither. We must be one or the other, so use a cast on the FCmpInst case to ensure that we are that case. Then we can avoid having an unreachable but still catch an error if we ever had another subclass of CmpInst. llvm-svn: 242264
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud