[llvm-commits] [hlvm] r38352 - /hlvm/trunk/hlvm/AST/AST.cpp
Reid Spencer
reid at x10sys.com
Sat Jul 7 17:02:35 PDT 2007
Author: reid
Date: Sat Jul 7 19:02:35 2007
New Revision: 38352
URL: http://llvm.org/viewvc/llvm-project?rev=38352&view=rev
Log:
Fix a nasty bug in getPointerTo where the registered type was the element type
not the pointer type. This meant that no pointer types would ever be reused and
caused numerous failures in the test case generator. A valuable bug to find.
Modified:
hlvm/trunk/hlvm/AST/AST.cpp
Modified: hlvm/trunk/hlvm/AST/AST.cpp
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/hlvm/AST/AST.cpp?rev=38352&r1=38351&r2=38352&view=diff
==============================================================================
--- hlvm/trunk/hlvm/AST/AST.cpp (original)
+++ hlvm/trunk/hlvm/AST/AST.cpp Sat Jul 7 19:02:35 2007
@@ -229,7 +229,7 @@
PT->setElementType(Ty);
PT->setName(ptr_name);
PT->setParent(Ty->getContainingBundle());
- ast->types.insert(ptr_name,Ty);
+ ast->types.insert(ptr_name,PT);
return PT;
}
More information about the llvm-commits
mailing list