Home
last modified time | relevance | path

Searched refs:SanOpts (Results 1 – 10 of 10) sorted by relevance

/external/clang/lib/CodeGen/
DCGExprScalar.cpp456 if (!CGF.SanOpts.has(SanitizerKind::SignedIntegerOverflow)) in EmitMul()
465 CGF.SanOpts.has(SanitizerKind::UnsignedIntegerOverflow)) in EmitMul()
835 if (CGF.SanOpts.has(SanitizerKind::FloatCastOverflow) && in EmitScalarConversion()
1158 if (CGF.SanOpts.has(SanitizerKind::ArrayBounds)) in VisitArraySubscriptExpr()
1400 if (CGF.SanOpts.has(SanitizerKind::CFIUnrelatedCast)) { in VisitCastExpr()
1436 if (CGF.SanOpts.has(SanitizerKind::CFIDerivedCast)) in VisitCastExpr()
1634 if (!CGF.SanOpts.has(SanitizerKind::SignedIntegerOverflow)) in EmitIncDecConsiderOverflowBehavior()
1673 CGF.SanOpts.has(SanitizerKind::UnsignedIntegerOverflow)) && in EmitScalarPrePostIncDec()
1721 CGF.SanOpts.has(SanitizerKind::UnsignedIntegerOverflow)) { in EmitScalarPrePostIncDec()
2130 CGF.SanOpts.has(SanitizerKind::UnsignedIntegerOverflow)) && in EmitCompoundAssignLValue()
[all …]
DCodeGenFunction.cpp46 SanOpts(CGM.getLangOpts().Sanitize), IsSanitizerScope(false), in CodeGenFunction()
665 SanOpts.clear(); in StartFunction()
670 SanOpts.Mask &= ~Attr->getMask(); in StartFunction()
674 if (SanOpts.hasOneOf(SanitizerKind::Address | SanitizerKind::KernelAddress)) in StartFunction()
676 if (SanOpts.has(SanitizerKind::Thread)) in StartFunction()
678 if (SanOpts.has(SanitizerKind::Memory)) in StartFunction()
680 if (SanOpts.has(SanitizerKind::SafeStack)) in StartFunction()
705 if (getLangOpts().CPlusPlus && SanOpts.has(SanitizerKind::Function)) { in StartFunction()
998 if (SanOpts.has(SanitizerKind::Return)) { in GenerateCode()
1679 if (SanOpts.has(SanitizerKind::VLABound) && in EmitVariablyModifiedType()
DCGExpr.cpp501 return SanOpts.has(SanitizerKind::Null) | in sanitizePerformTypeCheck()
502 SanOpts.has(SanitizerKind::Alignment) | in sanitizePerformTypeCheck()
503 SanOpts.has(SanitizerKind::ObjectSize) | in sanitizePerformTypeCheck()
504 SanOpts.has(SanitizerKind::Vptr); in sanitizePerformTypeCheck()
526 if ((SanOpts.has(SanitizerKind::Null) || AllowNullPointers) && in EmitTypeCheck()
543 if (SanOpts.has(SanitizerKind::ObjectSize) && !Ty->isIncompleteType()) { in EmitTypeCheck()
562 if (SanOpts.has(SanitizerKind::Alignment)) { in EmitTypeCheck()
597 if (SanOpts.has(SanitizerKind::Vptr) && in EmitTypeCheck()
721 assert(SanOpts.has(SanitizerKind::ArrayBounds) && in EmitBoundsCheck()
827 if (SanOpts.has(SanitizerKind::CFIUnrelatedCast)) { in EmitPointerWithAlignment()
[all …]
DCGClass.cpp978 : CGF(CGF), OldSanOpts(CGF.SanOpts) { in CopyingValueRepresentation()
979 CGF.SanOpts.set(SanitizerKind::Bool, false); in CopyingValueRepresentation()
980 CGF.SanOpts.set(SanitizerKind::Enum, false); in CopyingValueRepresentation()
983 CGF.SanOpts = OldSanOpts; in ~CopyingValueRepresentation()
1841 SanOpts.has(SanitizerKind::Memory) && ClassDecl->getNumVBases() && in EnterDtorCleanups()
1867 SanOpts.has(SanitizerKind::Memory) && !ClassDecl->getNumVBases() && in EnterDtorCleanups()
1891 SanOpts.has(SanitizerKind::Memory)) in EnterDtorCleanups()
2495 if (!SanOpts.has(SanitizerKind::CFICastStrict)) in EmitVTablePtrCheckForCall()
2518 if (!SanOpts.has(SanitizerKind::CFICastStrict)) in EmitVTablePtrCheckForCast()
DCGCall.cpp2483 if (CurCodeDecl && SanOpts.has(SanitizerKind::ReturnsNonnullAttribute)) { in EmitFunctionEpilog()
2809 if (!SanOpts.has(SanitizerKind::NonnullAttribute) || !FD) in EmitNonNullArgCheck()
DCGExprCXX.cpp259 if (SanOpts.has(SanitizerKind::CFINVCall) && in EmitCXXMemberOrOperatorMemberCallExpr()
DCodeGenFunction.h254 SanitizerSet SanOpts; variable
DItaniumCXXABI.cpp1604 if (CGF.SanOpts.has(SanitizerKind::CFIVCall)) in getVirtualFunctionPointer()
DMicrosoftCXXABI.cpp1816 if (CGF.SanOpts.has(SanitizerKind::CFIVCall)) in getVirtualFunctionPointer()
DCGBuiltin.cpp688 if (SanOpts.has(SanitizerKind::Unreachable)) { in EmitBuiltinExpr()