diff options
author | Eric Christopher <echristo@apple.com> | 2009-12-23 03:49:37 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2009-12-23 03:49:37 +0000 |
commit | c87915629b965cfd6d8db08ebe990de5fcb2b077 (patch) | |
tree | 26676048296905543f265bb48fa492b49f4e28df /clang/lib/Sema/SemaChecking.cpp | |
parent | 9a05f20d410720f3f7dd710cadaff574104a037d (diff) | |
download | bcm5719-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.cpp | 1 |
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()) |