]> granicus.if.org Git - clang/commit
Change keep-static-consts to work on static storage duration, not
authorErich Keane <erich.keane@intel.com>
Thu, 25 Oct 2018 19:13:46 +0000 (19:13 +0000)
committerErich Keane <erich.keane@intel.com>
Thu, 25 Oct 2018 19:13:46 +0000 (19:13 +0000)
commit77c1d483b0701070676445fe92c2fbb5b563a47c
treee921810aae6e814c1459d0a4e64c1bb4812579c3
parent4a3fc1754ba46f52c42cb52b2b5026f4e9cbc247
Change keep-static-consts to work on static storage duration, not
storage class.

To be more in line with what GCC does, switch the condition to be based
on the Static Storage duration instead of the storage class.

Change-Id: I8e959d762433cda48855099353bf3c950b9d54b8

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345302 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGen/keep-static-consts.cpp