diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-04-16 15:25:39 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-04-16 15:25:39 +0000 |
commit | d1b6778e69373405af71645e3ac826e586b54e9d (patch) | |
tree | 722870e4bb0bdfabddffac55326645cb3b98226c /clang/lib/CodeGen/CodeGenModule.h | |
parent | 3c4a251ce8cc9c7aacc96949413bea3efcb21289 (diff) | |
download | bcm5719-llvm-d1b6778e69373405af71645e3ac826e586b54e9d.tar.gz bcm5719-llvm-d1b6778e69373405af71645e3ac826e586b54e9d.zip |
Objective-C IRGen. Use llvm::WeakVH
for caching couple of global symbols used
for generation of CF/NS string meta-data
so they are not released prematuely in certain
corner cases. // rdar:// 13598026.
Reviewed by John M.
llvm-svn: 179599
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 1eb0ebb624b..ab499ae9b43 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -346,11 +346,11 @@ class CodeGenModule : public CodeGenTypeCache { /// CFConstantStringClassRef - Cached reference to the class for constant /// strings. This value has type int * but is actually an Obj-C class pointer. - llvm::Constant *CFConstantStringClassRef; + llvm::WeakVH CFConstantStringClassRef; /// ConstantStringClassRef - Cached reference to the class for constant /// strings. This value has type int * but is actually an Obj-C class pointer. - llvm::Constant *ConstantStringClassRef; + llvm::WeakVH ConstantStringClassRef; /// \brief The LLVM type corresponding to NSConstantString. llvm::StructType *NSConstantStringType; |