From: John Criswell Date: Fri, 9 Apr 2004 15:10:15 +0000 (+0000) Subject: Changed assertions to error messages. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aee0cf3fca7ad509b3bfdbd21f3a8fb3abe9d74a;p=oota-llvm.git Changed assertions to error messages. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12787 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index 3ceefe7ccd9..ce86e9cd94f 100644 --- a/lib/Target/X86/InstSelectSimple.cpp +++ b/lib/Target/X86/InstSelectSimple.cpp @@ -1691,7 +1691,8 @@ void ISel::visitIntrinsicCall(Intrinsic::ID ID, CallInst &CI) { BuildMI(BB, X86::IN32, 0); break; default: - assert (0 && "Cannot do input on this data type"); + std::cerr << "Cannot do input on this data type"; + exit (1); } return; @@ -1725,7 +1726,8 @@ void ISel::visitIntrinsicCall(Intrinsic::ID ID, CallInst &CI) { BuildMI(BB, X86::OUT32, 0); break; default: - assert (0 && "Cannot do input on this data type"); + std::cerr << "Cannot do output on this data type"; + exit (1); } return; diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp index 3ceefe7ccd9..ce86e9cd94f 100644 --- a/lib/Target/X86/X86ISelSimple.cpp +++ b/lib/Target/X86/X86ISelSimple.cpp @@ -1691,7 +1691,8 @@ void ISel::visitIntrinsicCall(Intrinsic::ID ID, CallInst &CI) { BuildMI(BB, X86::IN32, 0); break; default: - assert (0 && "Cannot do input on this data type"); + std::cerr << "Cannot do input on this data type"; + exit (1); } return; @@ -1725,7 +1726,8 @@ void ISel::visitIntrinsicCall(Intrinsic::ID ID, CallInst &CI) { BuildMI(BB, X86::OUT32, 0); break; default: - assert (0 && "Cannot do input on this data type"); + std::cerr << "Cannot do output on this data type"; + exit (1); } return;