Skip to content
Commit 2bafa007 authored by Argyrios Kyrtzidis's avatar Argyrios Kyrtzidis
Browse files

[libclang] When caching code-completion results, pass the CachedCompletionAllocator

to the CodeCompletionTUInfo that is going to be used to get the results.

Previously we would use ASTUnit's CodeCompletionTUInfo which has its own allocator
that will go away when we reparse. That could result in a use-after-free bug when
getting the parent context name from a CodeCompletionString.

Addresses rdar://12568377.

llvm-svn: 168133
parent 0e551c19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment