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/CGCXX.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/CGCXX.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGCXX.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCXX.cpp b/clang/lib/CodeGen/CGCXX.cpp index 5f3acea767d..21cea75da47 100644 --- a/clang/lib/CodeGen/CGCXX.cpp +++ b/clang/lib/CodeGen/CGCXX.cpp @@ -20,6 +20,7 @@ #include "clang/AST/Decl.h" #include "clang/AST/DeclCXX.h" #include "clang/AST/DeclObjC.h" +#include "llvm/Module.h" #include "llvm/ADT/StringExtras.h" using namespace clang; using namespace CodeGen; @@ -38,7 +39,8 @@ CodeGenFunction::GenerateStaticCXXBlockVarDeclInit(const VarDecl &D, // Create the guard variable. llvm::GlobalValue *GuardV = - new llvm::GlobalVariable(llvm::Type::Int64Ty, false, + new llvm::GlobalVariable(CGM.getModule().getContext(), + llvm::Type::Int64Ty, false, GV->getLinkage(), llvm::Constant::getNullValue(llvm::Type::Int64Ty), GuardVName.c_str(), |

