[llvm-commits] [hlvm] r38370 - /hlvm/trunk/hlvm/Reader/XMLReader.cpp

Reid Spencer reid at x10sys.com
Sat Jul 7 17:02:45 PDT 2007


Author: reid
Date: Sat Jul  7 19:02:45 2007
New Revision: 38370

URL: http://llvm.org/viewvc/llvm-project?rev=38370&view=rev
Log:
Fix attribute name.

Modified:
    hlvm/trunk/hlvm/Reader/XMLReader.cpp

Modified: hlvm/trunk/hlvm/Reader/XMLReader.cpp
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/hlvm/Reader/XMLReader.cpp?rev=38370&r1=38369&r2=38370&view=diff

==============================================================================
--- hlvm/trunk/hlvm/Reader/XMLReader.cpp (original)
+++ hlvm/trunk/hlvm/Reader/XMLReader.cpp Sat Jul  7 19:02:45 2007
@@ -478,9 +478,9 @@
     }
     case TKN_ptr:
     {
-      std::string id = getAttribute(cur,"id");
-      std::string nm = name.empty() ? std::string("ptr_") + id : name;
-      Constant* referent = bundle->getConst(id);
+      std::string to = getAttribute(cur,"to");
+      std::string nm = name.empty() ? std::string("ptr_") + to : name;
+      Constant* referent = bundle->getConst(to);
       if (!referent)
         error(loc,"Unkown referent for constant pointer");
       C = ast->new_ConstantPointer(nm,bundle,Ty,referent,loc);





More information about the llvm-commits mailing list