aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-21 06:58:21 +0000
committerChris Lattner <sabre@nondot.org>2009-03-21 06:58:21 +0000
commit5b60a0e369521825f892d755150255645d923646 (patch)
tree677d89334112362e80ff4af31673ceabd7d226f7 /lib/CodeGen/CodeGenModule.cpp
parent8f431a554367d2828b82612b456c3a2ce737e799 (diff)
remove obviously dead code: you can't bitcast a pointer to "Ty" (a function type).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67436 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--lib/CodeGen/CodeGenModule.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp
index a0024aa9bb..af4add905d 100644
--- a/lib/CodeGen/CodeGenModule.cpp
+++ b/lib/CodeGen/CodeGenModule.cpp
@@ -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 =