Hoist common code out of if statement.

llvm-svn: 152153
1 file changed