summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2009-12-23 03:49:37 +0000
committerEric Christopher <echristo@apple.com>2009-12-23 03:49:37 +0000
commitc87915629b965cfd6d8db08ebe990de5fcb2b077 (patch)
tree26676048296905543f265bb48fa492b49f4e28df /clang/lib/Sema/SemaChecking.cpp
parent9a05f20d410720f3f7dd710cadaff574104a037d (diff)
downloadbcm5719-llvm-c87915629b965cfd6d8db08ebe990de5fcb2b077.tar.gz
bcm5719-llvm-c87915629b965cfd6d8db08ebe990de5fcb2b077.zip
Update for the intrinsic changes in llvm: the object size intrinsic
only takes a boolean second argument now. Update tests accordingly. Currently the builtin still accepts the full range for compatibility. llvm-svn: 91983
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index 74ea1cc3cdd..f10fa07d860 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -747,6 +747,7 @@ bool Sema::SemaBuiltinEHReturnDataRegNo(CallExpr *TheCall) {
/// SemaBuiltinObjectSize - Handle __builtin_object_size(void *ptr,
/// int type). This simply type checks that type is one of the defined
/// constants (0-3).
+// For compatability check 0-3, llvm only handles 0 and 2.
bool Sema::SemaBuiltinObjectSize(CallExpr *TheCall) {
Expr *Arg = TheCall->getArg(1);
if (Arg->isTypeDependent())
OpenPOWER on IntegriCloud