Fix typo (thanks to Jordan for spotting it!).

llvm-svn: 170403
This commit is contained in:
Richard Smith 2012-12-18 03:04:38 +00:00
parent 52f32b9b2b
commit 8b731ea100
1 changed files with 1 additions and 1 deletions

View File

@ -543,7 +543,7 @@ void CodeGenFunction::EmitTypeCheck(TypeCheckKind TCK, SourceLocation Loc,
// [For storage which does not refer to an object within its lifetime]
// The program has undefined behavior if:
// -- the [pointer or glvalue] is used to access a non-static data member
// or call a non-stastic member function
// or call a non-static member function
CXXRecordDecl *RD = Ty->getAsCXXRecordDecl();
if (getLangOpts().SanitizeVptr &&
(TCK == TCK_MemberAccess || TCK == TCK_MemberCall) &&