diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-08 01:29:18 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-08 01:29:18 +0000 |
commit | 9f211fb4fac722ef78d173f1611b02ea3726d8c5 (patch) | |
tree | e71d35d0c5be800d14e860d0acddf78c62a8d9af /clang/lib/CodeGen/CGExprConstant.cpp | |
parent | 5948fdf68b5a1a68e8dbc10d28ef77473d5fc774 (diff) | |
download | bcm5719-llvm-9f211fb4fac722ef78d173f1611b02ea3726d8c5.tar.gz bcm5719-llvm-9f211fb4fac722ef78d173f1611b02ea3726d8c5.zip |
Update for LLVM API change.
llvm-svn: 74986
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp index 37c9c366fee..d000788721f 100644 --- a/clang/lib/CodeGen/CGExprConstant.cpp +++ b/clang/lib/CodeGen/CGExprConstant.cpp @@ -394,7 +394,7 @@ public: llvm::Constant* C = Visit(CLE->getInitializer()); // FIXME: "Leaked" on failure. if (C) - C = new llvm::GlobalVariable(C->getType(), + C = new llvm::GlobalVariable(CGM.getModule().getContext(), C->getType(), E->getType().isConstQualified(), llvm::GlobalValue::InternalLinkage, C, ".compoundliteral", &CGM.getModule()); |