OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7a4e2a
)
don't read Block after it is freed. This fixes PR1684
author
Chris Lattner
<sabre@nondot.org>
Fri, 21 Sep 2007 18:25:53 +0000
(18:25 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 21 Sep 2007 18:25:53 +0000
(18:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42204
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/DwarfWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/DwarfWriter.cpp
b/lib/CodeGen/DwarfWriter.cpp
index
121ef1d
..
ed4de7d
100644
(file)
--- a/
lib/CodeGen/DwarfWriter.cpp
+++ b/
lib/CodeGen/DwarfWriter.cpp
@@
-1301,7
+1301,9
@@
public:
ValuesSet.InsertNode(Value, Where);
Values.push_back(Value);
} else {
+ // Already exists, reuse the previous one.
delete Block;
+ Block = cast<DIEBlock>(Value);
}
Die->AddValue(Attribute, Block->BestForm(), Value);