diff options
| author | Daniel Sanders <daniel_l_sanders@apple.com> | 2018-10-23 17:41:39 +0000 |
|---|---|---|
| committer | Daniel Sanders <daniel_l_sanders@apple.com> | 2018-10-23 17:41:39 +0000 |
| commit | d0ef689830969042a3fbb8143ff8031afb17eda8 (patch) | |
| tree | 99e647048a57fadbe3658c1e58163011de2722c9 | |
| parent | 42ab6c53f85da6c50bf13dbf3e75cea09a51a715 (diff) | |
| download | bcm5719-llvm-d0ef689830969042a3fbb8143ff8031afb17eda8.tar.gz bcm5719-llvm-d0ef689830969042a3fbb8143ff8031afb17eda8.zip | |
Fix MSVC build by correcting placement of declspec after r345056
Going by the MSVC toolchains at godbolt.org, declspec comes after the template<...>.
llvm-svn: 345059
| -rw-r--r-- | llvm/utils/TableGen/FixedLenDecoderEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp index 361bad38302..44cf6eadcb0 100644 --- a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp +++ b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp @@ -2083,10 +2083,10 @@ static void emitFieldFromInstruction(formatted_raw_ostream &OS) { << "// * Support shift (<<, >>) with signed and unsigned integers on the " "RHS\n" << "// * Support put (<<) to raw_ostream&\n" + << "template<typename InsnType>\n" << "#if defined(_MSC_VER) && !defined(__clang__)\n" << "__declspec(noinline)\n" << "#endif\n" - << "template<typename InsnType>\n" << "static InsnType fieldFromInstruction(InsnType insn, unsigned " "startBit,\n" << " unsigned numBits, " |

