The return type is an unsigned, not a bool.
authorChad Rosier <mcrosier@apple.com>
Fri, 11 May 2012 16:41:38 +0000 (16:41 +0000)
committerChad Rosier <mcrosier@apple.com>
Fri, 11 May 2012 16:41:38 +0000 (16:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156621 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMFastISel.cpp

index de3e430b44071856ce30196a0fb37313bf6036ba..f3d930fbe0f455593920033eee1d3cad03bebbea 100644 (file)
@@ -719,7 +719,7 @@ unsigned ARMFastISel::TargetMaterializeAlloca(const AllocaInst *AI) {
   if (!FuncInfo.StaticAllocaMap.count(AI)) return 0;
 
   MVT VT;
-  if (!isLoadTypeLegal(AI->getType(), VT)) return false;
+  if (!isLoadTypeLegal(AI->getType(), VT)) return 0;
 
   DenseMap<const AllocaInst*, int>::iterator SI =
     FuncInfo.StaticAllocaMap.find(AI);