unittests: Remove implicit ilist iterator conversions, NFC
[oota-llvm.git] / unittests / Linker / LinkModulesTest.cpp
index 904ba58ce48e608fc528798c28d9bca1d2cb18ae..a1d889a6b3dd348f07bc60e3d5688bce8d65748b 100644 (file)
@@ -76,7 +76,7 @@ TEST_F(LinkModuleTest, BlockAddress) {
 
   std::vector<Value *> GEPIndices;
   GEPIndices.push_back(ConstantInt::get(Type::getInt32Ty(Ctx), 0));
-  GEPIndices.push_back(F->arg_begin());
+  GEPIndices.push_back(&*F->arg_begin());
 
   Value *GEP = Builder.CreateGEP(AT, GV, GEPIndices, "switch.gep");
   Value *Load = Builder.CreateLoad(GEP, "switch.load");