]> granicus.if.org Git - clang/commitdiff
Use an explicit assignment.
authorEric Christopher <echristo@gmail.com>
Thu, 27 Aug 2015 22:20:03 +0000 (22:20 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 27 Aug 2015 22:20:03 +0000 (22:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246225 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCall.cpp

index 67513e3ba4be20d8268bf2d88ca90c2d37d89487..d5997e51180bebdbaef8ec36cc9ad0be6b1111c4 100644 (file)
@@ -1503,8 +1503,8 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI,
       const auto *TD = FD->getAttr<TargetAttr>();
 
       // Make a copy of the features as passed on the command line.
-      std::vector<std::string> FnFeatures(
-          getTarget().getTargetOpts().FeaturesAsWritten);
+      std::vector<std::string> FnFeatures =
+          getTarget().getTargetOpts().FeaturesAsWritten;
 
       // Grab the target attribute string.
       StringRef FeaturesStr = TD->getFeatures();