]> granicus.if.org Git - clang/commitdiff
Fix a compile error caught by bb-chapuni.
authorAdrian Prantl <aprantl@apple.com>
Thu, 18 Jul 2013 00:47:12 +0000 (00:47 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 18 Jul 2013 00:47:12 +0000 (00:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186555 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 58bd1634dae4687a102fe6771c6c5fa6d161a86a..ac6263666a24a1ffe43dde50ba1259129f04934f 100644 (file)
@@ -76,8 +76,9 @@ BuiltinLocation::BuiltinLocation(CodeGenFunction &CGF, CGBuilderTy &B)
     DI->EmitLocation(Builder, SavedLoc);
     DI->CurLoc = SourceLocation();
     // Construct a location that has a valid scope, but no line info.
-    llvm::MDNode *Scope = DI->LexicalBlockStack.empty() ?
-      DI->TheCU() : DI->LexicalBlockStack.back();
+    llvm::DIDescriptor Scope = DI->LexicalBlockStack.empty() ?
+      llvm::DIDescriptor(DI->TheCU) :
+      llvm::DIDescriptor(DI->LexicalBlockStack.back());
     Builder.SetCurrentDebugLocation(llvm::DebugLoc::get(0, 0, Scope));
   }
 }