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

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


Author: reid
Date: Sat Jul  7 19:02:40 2007
New Revision: 38362

URL: http://llvm.org/viewvc/llvm-project?rev=38362&view=rev
Log:
It is more correct to use the type of the constant than the type of the referent
when making a constant pointer. If there are discrepancies, the validator will
pick them up.

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=38362&r1=38361&r2=38362&view=diff

==============================================================================
--- hlvm/trunk/hlvm/Reader/XMLReader.cpp (original)
+++ hlvm/trunk/hlvm/Reader/XMLReader.cpp Sat Jul  7 19:02:40 2007
@@ -493,8 +493,7 @@
       // Didn't find a constant? Try a linkable
       if (!referent)
         referent = bundle->find_linkable(id);
-      C = ast->new_ConstantPointer(
-        name,ast->getPointerTo(referent->getType()),referent,loc);
+      C = ast->new_ConstantPointer(name,Ty,referent,loc);
       break;
     }
     case TKN_arr:





More information about the llvm-commits mailing list