]> granicus.if.org Git - clang/commit
Basic: fix compilation with MSVC
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 6 Jan 2015 05:55:56 +0000 (05:55 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 6 Jan 2015 05:55:56 +0000 (05:55 +0000)
commitd287557ca022716d56a6ff4e7f8ba44a08ef9737
tree1f3ee3d394c0d43f28daa9b851faf754634df79d
parent9e0e86b228ebc6c50e4980ab45101d347a2f8f28
Basic: fix compilation with MSVC

MSVC doesn't like the instantiation of the structure in the initializer list.
Initialize it in the constructor body to repair the build.

TargetInfo.h(545) : error C2143: syntax error : missing ')' before '{'
TargetInfo.h(545) : error C2143: syntax error : missing ';' before '}'
TargetInfo.h(545) : error C2059: syntax error : ')'
TargetInfo.h(545) : error C2059: syntax error : ','
TargetInfo.h(547) : error C2143: syntax error : missing ';' before '{'
TargetInfo.h(547) : error C2447: '{' : missing function header (old-style formal list?)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@225247 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/TargetInfo.h