]> granicus.if.org Git - clang/commit
[Target] Make a copy of TargetOptions feature list before sorting during CodeGen
authorCraig Topper <craig.topper@intel.com>
Tue, 28 Nov 2017 18:00:32 +0000 (18:00 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 28 Nov 2017 18:00:32 +0000 (18:00 +0000)
commit2581a26fd58a211a37586eb0ae98019433c66969
treef773320de8ad3ba0043ad91cdea5840a2a090877
parent9fadf2235fe09410022228e4967eec29e0b92ca7
[Target] Make a copy of TargetOptions feature list before sorting during CodeGen

Currently CodeGen is calling std::sort on the features vector in TargetOptions for every function, but I don't think CodeGen should be modifying TargetOptions.

Differential Revision: https://reviews.llvm.org/D40228

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319195 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCall.cpp