Print an element of type ptr within an array. (ROOT-5607).

This commit is contained in:
CristinaCristescu 2014-06-03 14:00:22 +02:00 committed by sftnight
parent cea02a82e7
commit e36c4e937e

View File

@ -325,11 +325,11 @@ static void StreamValue(llvm::raw_ostream& o, const void* V,
else if (Ty->isPointerType()) {
clang::QualType PointeeTy = Ty->getPointeeType();
if (PointeeTy->isCharType())
StreamCharPtr(o, (const char*)V);
StreamCharPtr(o, *(const char**)V);
else if (PointeeTy->isFunctionProtoType())
StreamFunction(o, V, PointeeTy, Interp);
else
StreamPtr(o, V);
StreamPtr(o, *(void**)V);
}
else if (Ty->isArrayType())
StreamArr(o, V, Ty, Interp);