aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/LowerSubregs.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-08-05 03:53:14 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-08-05 03:53:14 +0000
commit6ade93bbdceac28f441cfdc2571929a866eb7d24 (patch)
tree270c1464c403941fa15a34f3a37160edb508355c /lib/CodeGen/LowerSubregs.cpp
parentaa289d5e7f526b3586a2b1e0b5bb6c1e5af9ef5d (diff)
downloadexternal_llvm-6ade93bbdceac28f441cfdc2571929a866eb7d24.zip
external_llvm-6ade93bbdceac28f441cfdc2571929a866eb7d24.tar.gz
external_llvm-6ade93bbdceac28f441cfdc2571929a866eb7d24.tar.bz2
Turn some insert_subreg, extract_subreg, subreg_to_reg into implicit_defs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78151 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LowerSubregs.cpp')
-rw-r--r--lib/CodeGen/LowerSubregs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/LowerSubregs.cpp b/lib/CodeGen/LowerSubregs.cpp
index 2a12063..6c5052a 100644
--- a/lib/CodeGen/LowerSubregs.cpp
+++ b/lib/CodeGen/LowerSubregs.cpp
@@ -119,6 +119,7 @@ bool LowerSubregsInstructionPass::LowerExtract(MachineInstr *MI) {
"Extract supperg source must be a physical register");
assert(TargetRegisterInfo::isPhysicalRegister(DstReg) &&
"Extract destination must be in a physical register");
+ assert(SrcReg && "invalid subregister index for register");
DOUT << "subreg: CONVERTING: " << *MI;