projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c3c5a4
)
Fix thinko. Create parent scope if parent descriptor is *not* null.
author
Devang Patel
<dpatel@apple.com>
Sat, 10 Jan 2009 02:34:18 +0000
(
02:34
+0000)
committer
Devang Patel
<dpatel@apple.com>
Sat, 10 Jan 2009 02:34:18 +0000
(
02:34
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62022
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index 6293590fd67690c1e258c5920b05152374098355..db0d656681508ae56cf2e345cf58768718c18654 100644
(file)
--- 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;
- DI
Block
*DB = new DIBlock(V);
+ DI
Descriptor
*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);