[llvm] r271562 - Use false for bool instead of 0
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 2 11:37:21 PDT 2016
Author: arsenm
Date: Thu Jun 2 13:37:21 2016
New Revision: 271562
URL: http://llvm.org/viewvc/llvm-project?rev=271562&view=rev
Log:
Use false for bool instead of 0
Modified:
llvm/trunk/lib/CodeGen/VirtRegMap.cpp
Modified: llvm/trunk/lib/CodeGen/VirtRegMap.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/VirtRegMap.cpp?rev=271562&r1=271561&r2=271562&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/VirtRegMap.cpp (original)
+++ llvm/trunk/lib/CodeGen/VirtRegMap.cpp Thu Jun 2 13:37:21 2016
@@ -82,7 +82,7 @@ unsigned VirtRegMap::createSpillSlot(con
bool VirtRegMap::hasPreferredPhys(unsigned VirtReg) {
unsigned Hint = MRI->getSimpleHint(VirtReg);
if (!Hint)
- return 0;
+ return false;
if (TargetRegisterInfo::isVirtualRegister(Hint))
Hint = getPhys(Hint);
return getPhys(VirtReg) == Hint;
More information about the llvm-commits
mailing list