[cfe-commits] r65078 - /cfe/trunk/lib/AST/Type.cpp

Chris Lattner sabre at nondot.org
Thu Feb 19 15:42:29 PST 2009


Author: lattner
Date: Thu Feb 19 17:42:29 2009
New Revision: 65078

URL: http://llvm.org/viewvc/llvm-project?rev=65078&view=rev
Log:
pretty printing vector types should print the element type, not just the attribute.

Modified:
    cfe/trunk/lib/AST/Type.cpp

Modified: cfe/trunk/lib/AST/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Type.cpp?rev=65078&r1=65077&r2=65078&view=diff

==============================================================================
--- cfe/trunk/lib/AST/Type.cpp (original)
+++ cfe/trunk/lib/AST/Type.cpp Thu Feb 19 17:42:29 2009
@@ -1184,6 +1184,7 @@
   S += " __attribute__((__vector_size__(";
   S += llvm::utostr_32(NumElements); // convert back to bytes.
   S += " * sizeof(" + ElementType.getAsString() + "))))";
+  ElementType.getAsStringInternal(S);
 }
 
 void ExtVectorType::getAsStringInternal(std::string &S) const {





More information about the cfe-commits mailing list