r174943 - Fix a bug reduced from a crash when trying to use modules with libc++. We check

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Feb 22 11:19:07 PST 2013


>  Linkage NamedDecl::getLinkage() const {
> -  if (HasCachedLinkage) {
> -    assert(Linkage(CachedLinkage) ==
> -           getLVForDecl(this, true).linkage());
> +  if (HasCachedLinkage)
>      return Linkage(CachedLinkage);
> -  }

This was one of my favorites asserts :-(

Would the attached patch be OK?


Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 2456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130222/3e8410e9/attachment.obj>


More information about the cfe-commits mailing list