From: Eli Friedman Date: Sun, 3 May 2009 21:22:18 +0000 (+0000) Subject: Fix/re-enable test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0d600c83a91b200616616f3982553c0ff42fcf3;p=clang Fix/re-enable test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70800 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 2986cc366a..6ce98cd28f 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -4734,7 +4734,7 @@ Sema::OwningExprResult Sema::ActOnBuiltinOffsetOf(Scope *S, << SourceRange(CompPtr[1].LocStart, CompPtr[NumComponents-1].LocEnd); if (!Dependent) { - bool DidWarnAboutNonPOD; + bool DidWarnAboutNonPOD = false; // FIXME: Dependent case loses a lot of information here. And probably // leaks like a sieve. diff --git a/test/SemaCXX/offsetof.cpp b/test/SemaCXX/offsetof.cpp index 2c03bed273..f0290e889a 100644 --- a/test/SemaCXX/offsetof.cpp +++ b/test/SemaCXX/offsetof.cpp @@ -1,6 +1,4 @@ -// FIXME: This test fails on 32-bit platforms? Investigate. - -// RUNX: clang-cc -fsyntax-only -verify %s -Winvalid-offsetof +// RUN: clang-cc -fsyntax-only -verify %s -Winvalid-offsetof struct NonPOD { virtual void f();