forked from OSchip/llvm-project
remove obviously dead code: you can't bitcast a pointer to "Ty" (a function type).
llvm-svn: 67436
This commit is contained in:
parent
cbeda87da1
commit
6098e62d56
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue