After Dan's recent commit this is no longer true.
authorDevang Patel <dpatel@apple.com>
Tue, 14 Sep 2010 20:32:58 +0000 (20:32 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 14 Sep 2010 20:32:58 +0000 (20:32 +0000)
Now isFunctionLocal is reset, if required,  when operands are modified.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113845 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Metadata.h

index f5a80a3dced2638555151693b1850123cd058d64..a6c3f039a11ec41802f5da0590c0421692b06571 100644 (file)
@@ -144,9 +144,6 @@ public:
   unsigned getNumOperands() const { return NumOperands; }
   
   /// isFunctionLocal - Return whether MDNode is local to a function.
-  /// Note: MDNodes are designated as function-local when created, and keep
-  ///       that designation even if their operands are modified to no longer
-  ///       refer to function-local IR.
   bool isFunctionLocal() const {
     return (getSubclassDataFromValue() & FunctionLocalBit) != 0;
   }