unittests: Remove implicit ilist iterator conversions, NFC
[oota-llvm.git] / unittests / IR / LegacyPassManagerTest.cpp
index 66fd1ccd7f2092cb9959280b2d5ac5c870aef9e6..1f88283dc0ce3845295b59f653a879ecc5789432 100644 (file)
@@ -510,7 +510,7 @@ namespace llvm {
       // Function: test4 (func_test4)
       {
         Function::arg_iterator args = func_test4->arg_begin();
-        Value* int1_f = args++;
+        Value *int1_f = &*args++;
         int1_f->setName("f");
 
         BasicBlock* label_entry_11 = BasicBlock::Create(getGlobalContext(), "entry",func_test4,nullptr);