summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-05-22 17:19:45 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-05-22 17:19:45 +0000
commita425589feac540f1792d2e698c1cb0103ba1ec86 (patch)
tree7b9d117ca5c26ff1d8376f6f1c20f51931a748d7 /clang/lib/CodeGen/CGExpr.cpp
parenta2f6cecb6d18bcc59d6c702378ed0701cd0208ae (diff)
downloadbcm5719-llvm-a425589feac540f1792d2e698c1cb0103ba1ec86.tar.gz
bcm5719-llvm-a425589feac540f1792d2e698c1cb0103ba1ec86.zip
wire -fbounds-checking to the new LLVM bounds checking pass
llvm-svn: 157262
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 11b8ed254c9..190855d3a0d 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -517,7 +517,7 @@ unsigned CodeGenFunction::getAccessedFieldNo(unsigned Idx,
}
void CodeGenFunction::EmitCheck(llvm::Value *Address, unsigned Size) {
- if (BoundsChecking <= 0)
+ if (!CatchUndefined)
return;
// This needs to be to the standard address space.
OpenPOWER on IntegriCloud