[llvm-commits] [llvm] r93762 - /llvm/trunk/lib/VMCore/Metadata.cpp

Victor Hernandez vhernandez at apple.com
Tue Jan 19 20:46:30 PST 2010


Fixed in r93977.

Victor

On Jan 18, 2010, at 5:24 PM, Chris Lattner wrote:

> 
> On Jan 18, 2010, at 12:36 PM, Victor Hernandez wrote:
> 
>> Author: hernande
>> Date: Mon Jan 18 14:36:54 2010
>> New Revision: 93762
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=93762&view=rev
>> Log:
>> Simplify MDNode::getFunction() and assertLocalFunction() by avoiding extra Function* variable and smallptrset since function-local metadata cannot be cyclic
> 
> Thanks Victor.  Now please factor this code by adding a simple:
> 
> static const Function *getFunctionForValue(Value *V);
> 
> function and using it in assertLocalFunction and getFunction.
> 
> -Chris
> 





More information about the llvm-commits mailing list