Make abort more explicit

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6151 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-05-12 21:16:26 +00:00
parent b70c1381b4
commit 9d6d118837
2 changed files with 6 additions and 2 deletions

View File

@ -1690,7 +1690,9 @@ void ISel::emitCastOperation(MachineBasicBlock *BB,
case cByte: StoreTy = Type::ShortTy; StoreClass = cShort; break;
case cShort: StoreTy = Type::IntTy; StoreClass = cInt; break;
case cInt: StoreTy = Type::LongTy; StoreClass = cLong; break;
case cLong: abort(); // FIXME: unsigned long long -> more complex
case cLong:
assert(0 &&"FIXME not implemented: cast FP to unsigned long long");
abort();
default: assert(0 && "Unknown store class!");
}

View File

@ -1690,7 +1690,9 @@ void ISel::emitCastOperation(MachineBasicBlock *BB,
case cByte: StoreTy = Type::ShortTy; StoreClass = cShort; break;
case cShort: StoreTy = Type::IntTy; StoreClass = cInt; break;
case cInt: StoreTy = Type::LongTy; StoreClass = cLong; break;
case cLong: abort(); // FIXME: unsigned long long -> more complex
case cLong:
assert(0 &&"FIXME not implemented: cast FP to unsigned long long");
abort();
default: assert(0 && "Unknown store class!");
}