aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-05-30 07:34:01 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-05-30 07:34:01 +0000
commitf561b08d67788e4570529b13938b65f097b2ac52 (patch)
tree9f831860d36a3f7dfdb2da3d6d6991d6d2844c85
parent26f5a69e52b64e035d26c135979a39b39fd6ba3e (diff)
Transform an occurrence of if(...) { assert (0) }.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13908 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/SparcV9/SparcV9InstrInfo.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrInfo.cpp b/lib/Target/SparcV9/SparcV9InstrInfo.cpp
index b6d580622f..af5f69a3e7 100644
--- a/lib/Target/SparcV9/SparcV9InstrInfo.cpp
+++ b/lib/Target/SparcV9/SparcV9InstrInfo.cpp
@@ -676,10 +676,8 @@ SparcV9InstrInfo::CreateCopyInstructionsByType(const TargetMachine& target,
const Type* resultType = dest->getType();
MachineOpCode opCode = ChooseAddInstructionByType(resultType);
- if (opCode == V9::INVALID_OPCODE) {
- assert(0 && "Unsupported result type in CreateCopyInstructionsByType()");
- return;
- }
+ assert (opCode != V9::INVALID_OPCODE
+ && "Unsupported result type in CreateCopyInstructionsByType()");
// if `src' is a constant that doesn't fit in the immed field or if it is
// a global variable (i.e., a constant address), generate a load