diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-05-03 21:22:18 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-05-03 21:22:18 +0000 |
commit | c0d600c83a91b200616616f3982553c0ff42fcf3 (patch) | |
tree | a305caf3eff4dbd170a9c35f398bd9da8abb5a89 | |
parent | 9c2b34728b1a7c9df2df25fb5952dd33411a5a23 (diff) |
Fix/re-enable test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70800 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 2 | ||||
-rw-r--r-- | test/SemaCXX/offsetof.cpp | 4 |
2 files changed, 2 insertions, 4 deletions
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(); |