[PATCH] D44124: [analyzer] Support destruction and lifetime-extension of inlined function return values.

Devin Coughlin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 5 17:12:58 PST 2018


dcoughlin accepted this revision.
dcoughlin added a comment.
This revision is now accepted and ready to land.

LGTM!



================
Comment at: test/Analysis/lifetime-extension.cpp:301
+  }
+  // 1. Construct the original temporary within make(),
+  // 2. Construct return value of  make() (elidable move) and lifetime-extend
----------------
It might be easier to follow if you started from '0' so that steps here match offsets into `buf`.


Repository:
  rC Clang

https://reviews.llvm.org/D44124





More information about the cfe-commits mailing list