[opaque pointers] Avoid the use of pointee types when parsing inline asm in IR
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 27 Jul 2015 23:32:19 +0000 (23:32 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 27 Jul 2015 23:32:19 +0000 (23:32 +0000)
commit4f7a4bc79f67ae7255be56f78317368b9333ef0e
treecd0c7464b99b6c664e83ebc93a8cc221f6880a9d
parent477137f4d70c7dce95d90e1c121f5cb168c4d891
[opaque pointers] Avoid the use of pointee types when parsing inline asm in IR

When parsing calls to inline asm the pointee type (of the pointer type
representing the value type of the InlineAsm value) was used. To avoid
using it, use the ValID structure to ferry the FunctionType directly
through to the InlineAsm construction.

This is a bit of a workaround - alternatively the inline asm could
explicitly describe the type but that'd be verbose/redundant in the IR
and so long as the inline asm calls directly in the context of a call or
invoke, this should suffice.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243349 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLParser.h