summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHReaderDecl.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-14 22:15:41 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-14 22:15:41 +0000
commit0a7c01ff2b2b42c22e25733bf6c961cdf6ad5166 (patch)
treee5babbe6217d0b19c365fa16879e12878c8bd7b4 /clang/lib/Frontend/PCHReaderDecl.cpp
parent98ed3c7273cbccb69ed322fe2223f3bccd5b7850 (diff)
downloadbcm5719-llvm-0a7c01ff2b2b42c22e25733bf6c961cdf6ad5166.tar.gz
bcm5719-llvm-0a7c01ff2b2b42c22e25733bf6c961cdf6ad5166.zip
Check that the function being overridden is virtual.
llvm-svn: 71802
Diffstat (limited to 'clang/lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r--clang/lib/Frontend/PCHReaderDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/PCHReaderDecl.cpp b/clang/lib/Frontend/PCHReaderDecl.cpp
index 45af36c82f4..865dd97db60 100644
--- a/clang/lib/Frontend/PCHReaderDecl.cpp
+++ b/clang/lib/Frontend/PCHReaderDecl.cpp
@@ -149,7 +149,7 @@ void PCHDeclReader::VisitFunctionDecl(FunctionDecl *FD) {
FD->setStorageClass((FunctionDecl::StorageClass)Record[Idx++]);
FD->setInline(Record[Idx++]);
FD->setC99InlineDefinition(Record[Idx++]);
- FD->setVirtual(Record[Idx++]);
+ FD->setVirtualAsWritten(Record[Idx++]);
FD->setPure(Record[Idx++]);
FD->setHasInheritedPrototype(Record[Idx++]);
FD->setHasWrittenPrototype(Record[Idx++]);
OpenPOWER on IntegriCloud