summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-07-07 23:59:57 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-07-07 23:59:57 +0000
commitac4afe49e7b7d17a5b7f5e9872baccd8fb5c8a97 (patch)
tree12bd0e372ba4fd2026f8f1b27ad851e6365ffad9 /clang/lib/CodeGen/CGExprScalar.cpp
parent28638911cd79f9808edc5f297b16403b8ff370bc (diff)
downloadbcm5719-llvm-ac4afe49e7b7d17a5b7f5e9872baccd8fb5c8a97.tar.gz
bcm5719-llvm-ac4afe49e7b7d17a5b7f5e9872baccd8fb5c8a97.zip
[Sanitizer] Remove brittle cache variable and slightly simplify blacklisting code.
Now CodeGenFunction is responsible for looking at sanitizer blacklist (in CodeGenFunction::StartFunction) and turning off instrumentation, if necessary. No functionality change. llvm-svn: 212501
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index a4abc0fadbb..1be7b4230a3 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/lib/CodeGen/CGExprScalar.cpp
@@ -1328,7 +1328,7 @@ Value *ScalarExprEmitter::VisitCastExpr(CastExpr *CE) {
// C++11 [expr.static.cast]p11: Behavior is undefined if a downcast is
// performed and the object is not of the derived type.
- if (CGF.SanitizePerformTypeCheck)
+ if (CGF.sanitizePerformTypeCheck())
CGF.EmitTypeCheck(CodeGenFunction::TCK_DowncastPointer, CE->getExprLoc(),
Derived, DestTy->getPointeeType());
OpenPOWER on IntegriCloud