fix an obvious bug found by clang++ and collapse a redundant if.
authorChris Lattner <sabre@nondot.org>
Mon, 14 Dec 2009 19:34:32 +0000 (19:34 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 14 Dec 2009 19:34:32 +0000 (19:34 +0000)
commitcdfb30287689346f3fbb466f1ea62bbb9df73333
tree1d1182ac2a41e0ef5e4b5544d15f21c9b8d554cd
parenta4f8ecd85de38c14b11bbd0fc8cb9a427e9f3d75
fix an obvious bug found by clang++ and collapse a redundant if.

Here's the diagnostic from clang:

/Volumes/Data/dgregor/Projects/llvm/lib/Target/CppBackend/CPPBackend.cpp:989:23: warning: 'gv' is always NULL in this context
        printConstant(gv);
                      ^
1 diagnostic generated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91318 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/CppBackend/CPPBackend.cpp