Remove unneeded cast.

llvm-svn: 18405
This commit is contained in:
Chris Lattner 2004-12-01 17:13:05 +00:00
parent cf2e128758
commit 9a43d294b9
1 changed files with 0 additions and 1 deletions

View File

@ -266,7 +266,6 @@ void *JITEmitter::getPointerToGlobal(GlobalValue *V, void *Reference,
if (GlobalVariable *GV = dyn_cast<GlobalVariable>(V)) {
/// FIXME: If we straightened things out, this could actually emit the
/// global immediately instead of queuing it for codegen later!
GlobalVariable *GV = cast<GlobalVariable>(V);
return TheJIT->getOrEmitGlobalVariable(GV);
}