================
@@ -3902,6 +3902,8 @@ void Preprocessor::HandleEmbedDirectiveImpl(
   }
 
   EmbedAnnotationData *Data = new (BP) EmbedAnnotationData;
+  Data->Filename = Filename;
+  Data->IsAngled = IsAngled;
   Data->BinaryData = BinaryContents;
----------------
Sirraide wrote:

> where can we store the filename string to manage the memory in a good way?

Can’t we just copy the string data into the ASTContext’s allocator and store a 
StringRef to it, or am I missing something here?

https://github.com/llvm/llvm-project/pull/117770
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to