]> granicus.if.org Git - clang/commit
Teach tryEvaluate that fabs, copysign, and unary +/- are constants for
authorDaniel Dunbar <daniel@zuster.org>
Thu, 16 Oct 2008 03:51:50 +0000 (03:51 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 16 Oct 2008 03:51:50 +0000 (03:51 +0000)
commit5db4b3f3ed9f769d5b02c1d1ccc52bfd71fb9afb
tree15a37364326fcef126fcbf59b036bce17e39e0ed
parent3b0db908ebd07eaa26bc90deba5e826de00fe515
Teach tryEvaluate that fabs, copysign, and unary +/- are constants for
floats.
 - With testcase, which also has some other things GCC folds but we
   don't commented out in it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57624 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
test/Sema/constant-builtins-2.c [new file with mode: 0644]