Provide better messages in llvm_unreachable.

llvm-svn: 148293
This commit is contained in:
David Blaikie 2012-01-17 07:00:13 +00:00
parent 8a40f700e6
commit a5708dc3a3
2 changed files with 2 additions and 2 deletions

View File

@ -1092,7 +1092,7 @@ LLVMLinkage LLVMGetLinkage(LLVMValueRef Global) {
return LLVMCommonLinkage;
}
llvm_unreachable("Make GCC's unreachability happy");
llvm_unreachable("Invalid GlobalValue linkage!");
}
void LLVMSetLinkage(LLVMValueRef Global, LLVMLinkage Linkage) {

View File

@ -913,7 +913,7 @@ bool SDTypeConstraint::ApplyTypeConstraint(TreePatternNode *N,
EnforceVectorSubVectorTypeIs(NodeToApply->getExtType(ResNo), TP);
}
}
llvm_unreachable("Make GCC's unreachability happy");
llvm_unreachable("Invalid ConstraintType!");
}
//===----------------------------------------------------------------------===//