summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-11-28 03:35:45 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-11-28 03:35:45 +0000
commitc9e3e6ff29df3ea0bd584c304096c1ce654a3c16 (patch)
treefb54ce3eec083d07fa43adca49efed5aa025431b
parent78910a508adb392b04105ae2742bc174dcce38c4 (diff)
downloadbcm5719-llvm-c9e3e6ff29df3ea0bd584c304096c1ce654a3c16.tar.gz
bcm5719-llvm-c9e3e6ff29df3ea0bd584c304096c1ce654a3c16.zip
Tests now pass with the assertion.
llvm-svn: 90026
-rw-r--r--clang/lib/CodeGen/CGClass.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index 0ee1469e097..b3c2b986d19 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -31,9 +31,6 @@ ComputeNonVirtualBaseClassOffset(ASTContext &Context, CXXBasePaths &Paths,
const ASTRecordLayout &Layout = Context.getASTRecordLayout(Element.Class);
const CXXBaseSpecifier *BS = Element.Base;
- // FIXME: enable test3 from virt.cc to not abort.
- if (BS->isVirtual())
- return 0;
assert(!BS->isVirtual() && "Should not see virtual bases here!");
const CXXRecordDecl *Base =
OpenPOWER on IntegriCloud