Fix problem with building ISPC by clang 3.4

This commit is contained in:
Dmitry Babokin
2013-10-10 16:10:31 +04:00
parent 99df2d9dbf
commit 17b54cb0c8
2 changed files with 2 additions and 2 deletions

View File

@@ -3066,7 +3066,7 @@ void CWriter::visitReturnInst(llvm::ReturnInst &I) {
// Don't output a void return if this is the last basic block in the function
if (I.getNumOperands() == 0 &&
&*--I.getParent()->getParent()->end() == I.getParent() &&
!I.getParent()->size() == 1) {
(!I.getParent()->size()) == 1) {
return;
}