Skip to content
Commit 3768ad6d authored by Argyrios Kyrtzidis's avatar Argyrios Kyrtzidis
Browse files

Implement more efficient Decl <-> DeclContext conversions.

When the static type on the Decl side is a subclass of DeclContext the compiler will use a "inlinable" static_cast, instead of always using an out-of-line function call.

Note, though, that the isa<> check still uses an out-of-line function call.

llvm-svn: 57415
parent 46a9c01f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment