]> granicus.if.org Git - clang/commitdiff
Adjust for debug info API change.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 21 Sep 2010 15:59:59 +0000 (15:59 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 21 Sep 2010 15:59:59 +0000 (15:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114438 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index bf5f9746da835cd425f5e175b38269d1c0e91b3e..a0ed53b70a8bf811b9f750fe38b214487ed8408b 100644 (file)
@@ -1785,7 +1785,7 @@ void CGDebugInfo::EmitDeclare(const BlockDeclRefExpr *BDRE, unsigned Tag,
     DebugFactory.CreateComplexVariable(Tag,
                                        llvm::DIDescriptor(RegionStack.back()),
                                        VD->getName(), Unit, Line, Ty,
-                                       addr);
+                                       addr.data(), addr.size());
   // Insert an llvm.dbg.declare into the current block.
   llvm::Instruction *Call = 
     DebugFactory.InsertDeclare(Storage, D, Builder.GetInsertBlock());