]> granicus.if.org Git - llvm/commit
Prepare for making SwitchInstProfUpdateWrapper strict
authorYevgeny Rouban <yevgeny.rouban@azul.com>
Tue, 9 Jul 2019 05:07:28 +0000 (05:07 +0000)
committerYevgeny Rouban <yevgeny.rouban@azul.com>
Tue, 9 Jul 2019 05:07:28 +0000 (05:07 +0000)
commita593b7070eb302cc446046797d87dab524be040b
tree4f0a4024f295a632af67fa1435a71dd1d26d6627
parentcb8f66de850c6540e0adef562437f4363c6ecf30
Prepare for making SwitchInstProfUpdateWrapper strict

This patch removes the test part that relates to the non-strict
behavior of SwitchInstProfUpdateWrapper and changes
the assertion to llvm_unreachable() to allow the check in
release builds.
This patch prepares SwitchInstProfUpdateWrapper to become
strict with one line change. That is need to revert it easily
if any failure will arise.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365439 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Instructions.cpp
unittests/IR/InstructionsTest.cpp