This is an archive of the discontinued LLVM Phabricator instance.

[PATCH] Fix missing arguments to getType and getSymbol in Elf_Rel_Impl
ClosedPublic

Authored by jakehehrlich on Jul 6 2017, 6:52 PM.

Details

Summary

Somehow this was compiling without these methods having their arguments passed to them. I used these methods in some code I wrote and it raised an error on me. It appears no one else has used these methods let (LLD uses setSymbolAndType however). This change resolves the issue.

As a curious question does anyone know how this was allowed to compile? I'm wondering weather this is a compiler bug. Every other method in these two specializations is used by some piece of code in LLVM/LLD. Shouldn't this have caused an error to be raised at compile time since these templates were fully instantiated?

Diff Detail

Repository
rL LLVM

Event Timeline

jakehehrlich created this revision.Jul 6 2017, 6:52 PM

I forgot to fix the other specialization as well.

This revision was automatically updated to reflect the committed changes.