diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-08-05 03:53:14 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-08-05 03:53:14 +0000 |
commit | 6ade93bbdceac28f441cfdc2571929a866eb7d24 (patch) | |
tree | 270c1464c403941fa15a34f3a37160edb508355c /lib/CodeGen/LowerSubregs.cpp | |
parent | aa289d5e7f526b3586a2b1e0b5bb6c1e5af9ef5d (diff) | |
download | external_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.cpp | 1 |
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; |