aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-01-10 02:34:18 +0000
committerDevang Patel <dpatel@apple.com>2009-01-10 02:34:18 +0000
commitdd49fbbc311d13edacba6593f16cc3254e01c45c (patch)
treebcf570d497c52e3be41e2491ebb6f3104e1b6898 /lib/CodeGen
parent6aa342d88f9748e85731ea7c10a5ca13c624b3ba (diff)
downloadexternal_llvm-dd49fbbc311d13edacba6593f16cc3254e01c45c.zip
external_llvm-dd49fbbc311d13edacba6593f16cc3254e01c45c.tar.gz
external_llvm-dd49fbbc311d13edacba6593f16cc3254e01c45c.tar.bz2
Fix thinko. Create parent scope if parent descriptor is *not* null.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62022 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index 6293590..db0d656 100644
--- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
@@ -2618,12 +2618,12 @@ private:
if (!Slot) {
// FIXME - breaks down when the context is an inlined function.
DIDescriptor ParentDesc;
- DIBlock *DB = new DIBlock(V);
+ DIDescriptor *DB = new DIBlock(V);
if (DIBlock *Block = dyn_cast<DIBlock>(DB)) {
ParentDesc = Block->getContext();
}
DbgScope *Parent = ParentDesc.isNull() ?
- getOrCreateScope(ParentDesc.getGV()) : NULL;
+ NULL : getOrCreateScope(ParentDesc.getGV());
Slot = new DbgScope(Parent, DB);
if (Parent) {
Parent->AddScope(Slot);