Print out the variable declaration only if it is a declaration. Otherwise, a
authorBill Wendling <isanbard@gmail.com>
Tue, 9 Aug 2011 18:31:50 +0000 (18:31 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 9 Aug 2011 18:31:50 +0000 (18:31 +0000)
commita0f596c1fc01d826687e4388b7fccd99cff8dc38
tree85ad84bd71785b53965d1ddb6d37d67bab40e9a7
parent4a74b3b933e2944ff313dc5d24da6f9e8ec4c1c4
Print out the variable declaration only if it is a declaration. Otherwise, a
'static' variable will be emitted twice.
PR10081

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137134 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/CBackend/CBackend.cpp
test/CodeGen/CBackend/pr10081.ll [new file with mode: 0644]