summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorPengfei Wang <pengfei.wang@intel.com>2019-05-29 02:49:59 +0000
committerPengfei Wang <pengfei.wang@intel.com>2019-05-29 02:49:59 +0000
commit72e3f9662b702fb407012d59ef0c23be2a3c7c7c (patch)
treebb81d87b0a801d6bdef2210d61f480aa83604278 /llvm/lib/CodeGen
parent82705e7d52b46ea6067cd75af6c16c695de99b1d (diff)
downloadbcm5719-llvm-72e3f9662b702fb407012d59ef0c23be2a3c7c7c.tar.gz
bcm5719-llvm-72e3f9662b702fb407012d59ef0c23be2a3c7c7c.zip
Revert "[X86] Use 'llvm_unreachable' instead of nullptr in unreachable code to"
This reverts commit c1b3716614bc0a107e6f41a7d3d503baefad8a5b. llvm-svn: 361918
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp b/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
index c2fa813c7d7..55f10a2d065 100644
--- a/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
@@ -91,9 +91,7 @@ RegisterBankInfo::getRegBank(unsigned Reg, const MachineRegisterInfo &MRI,
return RB;
if (auto *RC = RegClassOrBank.dyn_cast<const TargetRegisterClass *>())
return &getRegBankFromRegClass(*RC);
-
- llvm_unreachable("RegClassOrBank is either a const RegisterBank* or "
- "a const TargetRegisterClass*");
+ return nullptr;
}
const TargetRegisterClass &
OpenPOWER on IntegriCloud