aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BreakFalseDeps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/BreakFalseDeps.cpp')
-rw-r--r--llvm/lib/CodeGen/BreakFalseDeps.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/BreakFalseDeps.cpp b/llvm/lib/CodeGen/BreakFalseDeps.cpp
index 57170c58db14..310273173647 100644
--- a/llvm/lib/CodeGen/BreakFalseDeps.cpp
+++ b/llvm/lib/CodeGen/BreakFalseDeps.cpp
@@ -135,6 +135,7 @@ bool BreakFalseDeps::pickBestRegisterForUndef(MachineInstr *MI, unsigned OpIdx,
// Get the undef operand's register class
const TargetRegisterClass *OpRC =
TII->getRegClass(MI->getDesc(), OpIdx, TRI, *MF);
+ assert(OpRC && "Not a valid register class");
// If the instruction has a true dependency, we can hide the false depdency
// behind it.