Update for LLVM API change.

llvm-svn: 74986
This commit is contained in:
Owen Anderson
2009-07-08 01:29:18 +00:00
parent 5948fdf68b
commit 9f211fb4fa
7 changed files with 94 additions and 56 deletions

View File

@@ -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());