remove obviously dead code: you can't bitcast a pointer to "Ty" (a function type).

llvm-svn: 67436
This commit is contained in:
Chris Lattner 2009-03-21 06:58:21 +00:00
parent cbeda87da1
commit 6098e62d56
1 changed files with 1 additions and 5 deletions

View File

@ -956,11 +956,7 @@ llvm::Value *CodeGenModule::getBuiltinLibFunction(unsigned BuiltinID) {
llvm::GlobalValue *&ExistingFn =
GlobalDeclMap[getContext().Idents.get(Name).getName()];
if (ExistingFn) {
if (ExistingFn->getType() == Ty)
return FunctionSlot = ExistingFn;
return FunctionSlot = llvm::ConstantExpr::getBitCast(ExistingFn, Ty);
}
assert(!ExistingFn && "Asking for the same builtin multiple times?");
// FIXME: param attributes for sext/zext etc.
return FunctionSlot = ExistingFn =