diff options
author | Craig Topper <craig.topper@intel.com> | 2018-08-08 21:21:21 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-08-08 21:21:21 +0000 |
commit | 3e8820a01e73066f8571ba6ce093c3f4c59b10d4 (patch) | |
tree | 58b5ce00a02fbd27460698ac1b55ea7a3dd89667 /clang/lib/AST/ExprConstant.cpp | |
parent | 49ff4d904148125cad66a8df33b7033390068310 (diff) | |
download | bcm5719-llvm-3e8820a01e73066f8571ba6ce093c3f4c59b10d4.tar.gz bcm5719-llvm-3e8820a01e73066f8571ba6ce093c3f4c59b10d4.zip |
Revert r339287 "[Builtins] Add __builtin_clrsb support to IntExprEvaluator::VisitBuiltinCallExpr"
This add an additional unintended change in it.
llvm-svn: 339289
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r-- | clang/lib/AST/ExprConstant.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 0ce962e4194..7e596d0715c 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -8117,15 +8117,9 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E, case Builtin::BI__builtin_classify_type: return Success((int)EvaluateBuiltinClassifyType(E, Info.getLangOpts()), E); - case Builtin::BI__builtin_clrsb: - case Builtin::BI__builtin_clrsbl: - case Builtin::BI__builtin_clrsbll: { - APSInt Val; - if (!EvaluateInteger(E->getArg(0), Val, Info)) - return false; - - return Success(Val.getBitWidth() - Val.getMinSignedBits(), E); - } + // FIXME: BI__builtin_clrsb + // FIXME: BI__builtin_clrsbl + // FIXME: BI__builtin_clrsbll case Builtin::BI__builtin_clz: case Builtin::BI__builtin_clzl: |