summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBuiltin.cpp
diff options
context:
space:
mode:
authorWill Dietz <wdietz2@illinois.edu>2013-01-18 11:30:38 +0000
committerWill Dietz <wdietz2@illinois.edu>2013-01-18 11:30:38 +0000
commitf54319c891d806e410ac09caac35462cf95b8cce (patch)
tree195d8af1cea50e7be3e52d45a6c116ed7c578ef3 /clang/lib/CodeGen/CGBuiltin.cpp
parent63c36bbe5e0ae8d64df8c2a3be6c0b072febdc9a (diff)
downloadbcm5719-llvm-f54319c891d806e410ac09caac35462cf95b8cce.tar.gz
bcm5719-llvm-f54319c891d806e410ac09caac35462cf95b8cce.zip
[ubsan] Add support for -fsanitize-blacklist
llvm-svn: 172808
Diffstat (limited to 'clang/lib/CodeGen/CGBuiltin.cpp')
-rw-r--r--clang/lib/CodeGen/CGBuiltin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index 6678ebe71cf..9e09131a53b 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -436,7 +436,7 @@ RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD,
return RValue::get(Builder.CreateCall(F));
}
case Builtin::BI__builtin_unreachable: {
- if (getLangOpts().SanitizeUnreachable)
+ if (SanOpts->Unreachable)
EmitCheck(Builder.getFalse(), "builtin_unreachable",
EmitCheckSourceLocation(E->getExprLoc()),
ArrayRef<llvm::Value *>(), CRK_Unrecoverable);
OpenPOWER on IntegriCloud