commit | 46c5591f0fa2e35367e44234e59bb041d15b778e | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sat Oct 02 00:09:12 2010 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sat Oct 02 00:09:12 2010 +0000 |
tree | 1adf5b2d1bdd9568cbb4c7cb54569a97824442cb | |
parent | 81134ad7a056e45b7cb4ee1b562ab8c8413d65b7 [diff] |
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