]> granicus.if.org Git - llvm/commitdiff
[Attributor] Try to fix "missing field 'RetInsts' initializer" warning
authorJohannes Doerfert <jdoerfert@anl.gov>
Wed, 14 Aug 2019 22:32:29 +0000 (22:32 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Wed, 14 Aug 2019 22:32:29 +0000 (22:32 +0000)
http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/35674/steps/build_Lld/logs/stdio

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368938 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/Attributor.cpp

index aac00d5b994ae4236f55151f8a90cd80689cb116..b49e64426e844ae1e00cbe807124bf13dedd94c8 100644 (file)
@@ -735,7 +735,7 @@ ChangeStatus AAReturnedValuesImpl::updateImpl(Attributor &A) {
   // Callback for all "return intructions" live in the associated function.
   auto CheckReturnInst = [this, &VisitReturnedValue, &Changed](Instruction &I) {
     ReturnInst &Ret = cast<ReturnInst>(I);
-    RVState RVS({ReturnedValues, false});
+    RVState RVS({ReturnedValues, false, {}});
     RVS.RetInsts.insert(&Ret);
     Changed |= RVS.Changed;
     return VisitReturnedValue(*Ret.getReturnValue(), RVS);