land David Blaikie's patch to de-constify Type, with a few tweaks.
[oota-llvm.git] / unittests / ExecutionEngine / ExecutionEngineTest.cpp
index 904ee2b6c49fb3fcf23fc08fca758d7d4ac43291..4dcef20c6e77f5e5e88a8927935039da1b9e36f6 100644 (file)
@@ -30,7 +30,7 @@ protected:
     ASSERT_TRUE(Engine.get() != NULL);
   }
 
-  GlobalVariable *NewExtGlobal(const Type *T, const Twine &Name) {
+  GlobalVariable *NewExtGlobal(Type *T, const Twine &Name) {
     return new GlobalVariable(*M, T, false,  // Not constant.
                               GlobalValue::ExternalLinkage, NULL, Name);
   }