]> granicus.if.org Git - clang/commit
Delete assert in ComputeKeyFunction. The function runs fine without it, since
authorJeffrey Yasskin <jyasskin@google.com>
Tue, 29 Jun 2010 15:27:35 +0000 (15:27 +0000)
committerJeffrey Yasskin <jyasskin@google.com>
Tue, 29 Jun 2010 15:27:35 +0000 (15:27 +0000)
commitfe8ec01bba74f6841576a2ee93d2c62cdfa4eff2
tree4096f1789f612b6c52a261f672099ef576bb6bb7
parent9c254f0415bef9a0bafe5b5026ddb54b727597b1
Delete assert in ComputeKeyFunction.  The function runs fine without it, since
there's an explicit guard on isPolymorphic, and virtual bases don't affect the
key function calculation.  This allows people to call
ASTContext::getKeyFunction on arbitrary classes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107143 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTContext.h
lib/AST/RecordLayoutBuilder.cpp