Remove unneeded cast.
authorChris Lattner <sabre@nondot.org>
Wed, 1 Dec 2004 17:13:05 +0000 (17:13 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 1 Dec 2004 17:13:05 +0000 (17:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18405 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JIT/JITEmitter.cpp

index dec71116404b571eea81e4510111e58b877d03c6..e5cdc92b7542e2d54e6289141472c19cbbe71535 100644 (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);
   }