summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-09-08 02:08:36 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-09-08 02:08:36 +0000
commit4d1458ed389922e934581f1a53f02c77a80eb32e (patch)
tree7c530c29c3298031cec946a93efddb06c4c6ac03 /clang/lib/CodeGen/CGExprAgg.cpp
parent2201905b6c1528dcc67249df5bcfe93976584edf (diff)
downloadbcm5719-llvm-4d1458ed389922e934581f1a53f02c77a80eb32e.tar.gz
bcm5719-llvm-4d1458ed389922e934581f1a53f02c77a80eb32e.zip
-fcatch-undefined-behavior: Factor emission of the creation of, and branch to,
the trap BB out of the individual checks and into a common function, to prepare for making this code call into a runtime library. Rename the existing EmitCheck to EmitTypeCheck to clarify it and to move it out of the way of the new EmitCheck. llvm-svn: 163451
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprAgg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp
index a2101fb442d..48b21d2f851 100644
--- a/clang/lib/CodeGen/CGExprAgg.cpp
+++ b/clang/lib/CodeGen/CGExprAgg.cpp
@@ -552,7 +552,7 @@ void AggExprEmitter::VisitCastExpr(CastExpr *E) {
// FIXME: Can this actually happen? We have no test coverage for it.
assert(isa<CXXDynamicCastExpr>(E) && "CK_Dynamic without a dynamic_cast?");
LValue LV = CGF.EmitCheckedLValue(E->getSubExpr(),
- CodeGenFunction::CT_Load);
+ CodeGenFunction::TCK_Load);
// FIXME: Do we also need to handle property references here?
if (LV.isSimple())
CGF.EmitDynamicCast(LV.getAddress(), cast<CXXDynamicCastExpr>(E));
OpenPOWER on IntegriCloud