]> granicus.if.org Git - clang/commitdiff
pretty printing vector types should print the element type, not just the attribute.
authorChris Lattner <sabre@nondot.org>
Thu, 19 Feb 2009 23:42:29 +0000 (23:42 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 19 Feb 2009 23:42:29 +0000 (23:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65078 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Type.cpp

index 8032424f7824308089fb257a9aea7174d54beb35..65c4fabf8f14486d9ce8368f7fac5f4db9b6aacf 100644 (file)
@@ -1184,6 +1184,7 @@ void VectorType::getAsStringInternal(std::string &S) const {
   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 {