[PATCH] D94618: [flang] Fix dangling pointer in LabelEnforce
Tim Keith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 14 06:52:59 PST 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3e41ab18db22: [flang] Fix dangling pointer in LabelEnforce (authored by tskeith).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94618/new/
https://reviews.llvm.org/D94618
Files:
flang/lib/Semantics/check-directive-structure.h
Index: flang/lib/Semantics/check-directive-structure.h
===================================================================
--- flang/lib/Semantics/check-directive-structure.h
+++ flang/lib/Semantics/check-directive-structure.h
@@ -280,9 +280,9 @@
context_, directiveSource, directive, ContextDirectiveAsFortran()};
parser::Walk(block, noBranchingEnforce);
+ auto construct{parser::ToUpperCaseLetters(getDirectiveName(directive).str())};
LabelEnforce directiveLabelEnforce{context_, noBranchingEnforce.labels(),
- directiveSource,
- parser::ToUpperCaseLetters(getDirectiveName(directive).str()).c_str()};
+ directiveSource, construct.c_str()};
parser::Walk(block, directiveLabelEnforce);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94618.316646.patch
Type: text/x-patch
Size: 726 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210114/035c5a64/attachment.bin>
More information about the llvm-commits
mailing list