[cfe-commits] r67436 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Chris Lattner
sabre at nondot.org
Fri Mar 20 23:58:22 PDT 2009
Author: lattner
Date: Sat Mar 21 01:58:21 2009
New Revision: 67436
URL: http://llvm.org/viewvc/llvm-project?rev=67436&view=rev
Log:
remove obviously dead code: you can't bitcast a pointer to "Ty" (a function type).
Modified:
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=67436&r1=67435&r2=67436&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Sat Mar 21 01:58:21 2009
@@ -956,11 +956,7 @@
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 =
More information about the cfe-commits
mailing list