From: Francois Pichet Date: Mon, 20 Dec 2010 05:44:28 +0000 (+0000) Subject: XFAIL vtable-debug-info.cpp on WIN32 and fix curly brace. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8039129f3da19819696209e4005cc73907f5c3b;p=clang XFAIL vtable-debug-info.cpp on WIN32 and fix curly brace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122230 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index d23401c666..4ac162a9f9 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -374,8 +374,7 @@ Sema::ActOnCXXTypeid(SourceLocation OpLoc, SourceLocation LParenLoc, // Get the CXXRecordDecl associated with QT bypassing 1 level of pointer, // reference or array type. -static CXXRecordDecl *GetCXXRecordOfUuidArg(QualType QT) -{ +static CXXRecordDecl *GetCXXRecordOfUuidArg(QualType QT) { Type* Ty = QT.getTypePtr();; if (QT->isPointerType() || QT->isReferenceType()) Ty = QT->getPointeeType().getTypePtr(); diff --git a/test/CodeGenCXX/vtable-debug-info.cpp b/test/CodeGenCXX/vtable-debug-info.cpp index c51221cd7e..c355406fae 100644 --- a/test/CodeGenCXX/vtable-debug-info.cpp +++ b/test/CodeGenCXX/vtable-debug-info.cpp @@ -1,9 +1,13 @@ // RUN: %clang -c -g %s -o /dev/null // Radar 8730409 +// XFAIL: win32 // FIXME: This test crashes on Windows. -#ifndef _WIN32 +#ifdef _WIN32 +#error this test must xfail + +#else class foo { public: #define x(a) virtual void v ## a (void)