[llvm-commits] [dragonegg] r114283 - /dragonegg/trunk/llvm-debug.cpp
Gabor Greif
ggreif at gmail.com
Sat Sep 18 07:27:02 PDT 2010
Author: ggreif
Date: Sat Sep 18 09:27:02 2010
New Revision: 114283
URL: http://llvm.org/viewvc/llvm-project?rev=114283&view=rev
Log:
port r114276 from llvm-gcc
Modified:
dragonegg/trunk/llvm-debug.cpp
Modified: dragonegg/trunk/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-debug.cpp?rev=114283&r1=114282&r2=114283&view=diff
==============================================================================
--- dragonegg/trunk/llvm-debug.cpp (original)
+++ dragonegg/trunk/llvm-debug.cpp Sat Sep 18 09:27:02 2010
@@ -349,7 +349,7 @@
std::map<tree_node *, WeakVH>::iterator I = RegionMap.find(Node);
if (I != RegionMap.end())
- if (MDNode *R = dyn_cast_or_null<MDNode>(I->second))
+ if (MDNode *R = dyn_cast_or_null<MDNode>(&*I->second))
return DIDescriptor(R);
if (TYPE_P (Node)) {
@@ -758,7 +758,7 @@
// descriptor.
std::map<tree_node *, WeakVH >::iterator I = TypeCache.find(type);
if (I != TypeCache.end())
- if (MDNode *TN = dyn_cast_or_null<MDNode>(I->second))
+ if (MDNode *TN = dyn_cast_or_null<MDNode>(&*I->second))
return DIType(TN);
// forward declaration,
More information about the llvm-commits
mailing list