]> granicus.if.org Git - clang/commit
Fix validation of the -mthread-model flag in the Clang driver
authorJonathan Roelofs <jonathan@codesourcery.com>
Thu, 7 Sep 2017 22:01:25 +0000 (22:01 +0000)
committerJonathan Roelofs <jonathan@codesourcery.com>
Thu, 7 Sep 2017 22:01:25 +0000 (22:01 +0000)
commitd0b70f18d5faa2359de8ffd1922ff3a9684c82c2
tree8bf9e6280daa031295b6642f5e46def31c9666d5
parent5c19ffded186077869540ffcdc09ab0bd263d8a9
Fix validation of the -mthread-model flag in the Clang driver

The ToolChain class validates the -mthread-model flag in the constructor which
doesn't work correctly since the thread model methods are virtual methods. The
check is moved into Clang::ConstructJob() when constructing the internal
command line.

https://reviews.llvm.org/D37496

Patch by: Ian Tessier!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312748 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChain.cpp
lib/Driver/ToolChains/Clang.cpp