]> granicus.if.org Git - clang/commit
when expanding a builtin, if the argument is required to be a constant,
authorChris Lattner <sabre@nondot.org>
Sat, 2 Oct 2010 00:09:12 +0000 (00:09 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 2 Oct 2010 00:09:12 +0000 (00:09 +0000)
commit46c5591f0fa2e35367e44234e59bb041d15b778e
tree1adf5b2d1bdd9568cbb4c7cb54569a97824442cb
parent81134ad7a056e45b7cb4ee1b562ab8c8413d65b7
when expanding a builtin, if the argument is required to be a constant,
force it to be a constant instead of emitting with EmitScalarExpr.  In
-ftrapv mode, they are not the same.

This fixes rdar://8478728 + PR8221

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115388 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp