commit | 6347f420ee0b097c0e642dc6c51afee5f1b14235 | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Tue Jul 21 19:28:10 2009 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Tue Jul 21 19:28:10 2009 +0000 |
tree | 34d4e1119f3dc8b67d132e9fe502d03bb8e39753 | |
parent | f0a6a0c29fb733b934930374554c84a83db5a790 [diff] |
Misc fixes for -Wreorder: 1. Make it work correctly with anonymous unions. 2. Don't compute it if the warning isn't enabled. 3. Optimize the algorithm slightly to make it linear time in the case where we don't produce any warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76630 91177308-0d34-0410-b5e6-96231b3b80d8