summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2014-03-24 22:05:38 +0000
committerEli Bendersky <eliben@google.com>2014-03-24 22:05:38 +0000
commitcb39943f6fe00ebe9315f0cd671728473966bb61 (patch)
treead96f0440da3027adf348049f4e1d8f7b8c2eea8 /clang/lib/CodeGen/CodeGenFunction.h
parent21b98a6c83c622224da83e31ef08e112433a3da9 (diff)
downloadbcm5719-llvm-cb39943f6fe00ebe9315f0cd671728473966bb61.tar.gz
bcm5719-llvm-cb39943f6fe00ebe9315f0cd671728473966bb61.zip
Proper handling of static local variables with address space qualifiers.
Similar to the implementation for globals in r157167. Patch by Jingyue Wu. llvm-svn: 204677
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index bbc4fae9928..c583a30548b 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -2336,9 +2336,9 @@ public:
/// CreateStaticVarDecl - Create a zero-initialized LLVM global for
/// a static local variable.
- llvm::GlobalVariable *CreateStaticVarDecl(const VarDecl &D,
- const char *Separator,
- llvm::GlobalValue::LinkageTypes Linkage);
+ llvm::Constant *CreateStaticVarDecl(const VarDecl &D,
+ const char *Separator,
+ llvm::GlobalValue::LinkageTypes Linkage);
/// AddInitializerToStaticVarDecl - Add the initializer for 'D' to the
/// global variable that has already been created for it. If the initializer
OpenPOWER on IntegriCloud