Update for LLVM API change.
llvm-svn: 74986
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user