commit | cb03d70301c53fda356c4d9c7c0c507651d54101 | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Sat Aug 20 16:51:33 2016 +0000 |
committer | Vedant Kumar <vsk@apple.com> | Tue Sep 13 18:21:29 2016 -0700 |
tree | 1d323f4d2431a3c5e7b793bbbd7b6ca4e19264d4 | |
parent | 6c5aacf9515b7373d9d3aea00f5ed08d919577fe [diff] |
[Sema] Don't crash on scanf on forward-declared enums. This is valid in GNU C, which allows pointers to incomplete enums. GCC just pretends that the underlying type is 'int' in those cases, follow that behavior. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279374 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit 9c27c6bd260a3e4d531a2ebbcff339c4600da04f)