[PATCH] D27420: Fix stack-use-after-scope in EvaluateImplicitExceptionSpec

Vitaly Buka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 5 10:40:50 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL288685: Fix stack-use-after-scope in EvaluateImplicitExceptionSpec (authored by vitalybuka).

Changed prior to commit:
  https://reviews.llvm.org/D27420?vs=80290&id=80292#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D27420

Files:
  cfe/trunk/lib/Sema/SemaDeclCXX.cpp


Index: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
===================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp
@@ -6100,7 +6100,8 @@
     return;
 
   // Evaluate the exception specification.
-  auto ESI = computeImplicitExceptionSpec(*this, Loc, MD).getExceptionSpec();
+  auto IES = computeImplicitExceptionSpec(*this, Loc, MD);
+  auto ESI = IES.getExceptionSpec();
 
   // Update the type of the special member to use it.
   UpdateExceptionSpec(MD, ESI);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27420.80292.patch
Type: text/x-patch
Size: 536 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161205/317be666/attachment.bin>


More information about the cfe-commits mailing list