summaryrefslogtreecommitdiffstats
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
commit5491f2581069ff3c6fd47fab446dbac67c50e21d (patch)
tree4f552dc741090258ed096043712cd19d2ca6e359
parentcb8d7e131cfb06cb251c2ddceddf83f9cb5bc57d (diff)
downloadbcm5719-llvm-5491f2581069ff3c6fd47fab446dbac67c50e21d.tar.gz
bcm5719-llvm-5491f2581069ff3c6fd47fab446dbac67c50e21d.zip
Fix thinko. Create parent scope if parent descriptor is *not* null.
llvm-svn: 62022
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index 6293590fd67..db0d6566815 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud