[PATCH] D25983: Fix use-after-free in ASTContext.
Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 26 06:01:17 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL285192: Fix use-after-scope in ASTContext. (authored by d0k).
Changed prior to commit:
https://reviews.llvm.org/D25983?vs=75860&id=75865#toc
Repository:
rL LLVM
https://reviews.llvm.org/D25983
Files:
cfe/trunk/lib/AST/ASTContext.cpp
Index: cfe/trunk/lib/AST/ASTContext.cpp
===================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp
+++ cfe/trunk/lib/AST/ASTContext.cpp
@@ -3230,13 +3230,13 @@
for (unsigned i = 0; i != NumArgs; ++i)
CanonicalArgs.push_back(getCanonicalParamType(ArgArray[i]));
+ llvm::SmallVector<QualType, 8> ExceptionTypeStorage;
FunctionProtoType::ExtProtoInfo CanonicalEPI = EPI;
CanonicalEPI.HasTrailingReturn = false;
if (IsCanonicalExceptionSpec) {
// Exception spec is already OK.
} else if (NoexceptInType) {
- llvm::SmallVector<QualType, 8> ExceptionTypeStorage;
switch (EPI.ExceptionSpec.Type) {
case EST_Unparsed: case EST_Unevaluated: case EST_Uninstantiated:
// We don't know yet. It shouldn't matter what we pick here; no-one
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25983.75865.patch
Type: text/x-patch
Size: 845 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161026/d03e4c69/attachment.bin>
More information about the cfe-commits
mailing list