[llvm] r263046 - MachineRegisterInfo: Correct comment

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 9 10:47:05 PST 2016


Author: matze
Date: Wed Mar  9 12:47:05 2016
New Revision: 263046

URL: http://llvm.org/viewvc/llvm-project?rev=263046&view=rev
Log:
MachineRegisterInfo: Correct comment

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h?rev=263046&r1=263045&r2=263046&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineRegisterInfo.h Wed Mar  9 12:47:05 2016
@@ -387,8 +387,8 @@ public:
   /// specified register (it may be live-in).
   bool def_empty(unsigned RegNo) const { return def_begin(RegNo) == def_end(); }
 
-  /// hasOneDef - Return true if there is exactly one instruction defining the
-  /// specified register.
+  /// Return true if there is exactly one operand defining the specified
+  /// register.
   bool hasOneDef(unsigned RegNo) const {
     def_iterator DI = def_begin(RegNo);
     if (DI == def_end())




More information about the llvm-commits mailing list