Make GCC happy again.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 24 Mar 2017 14:15:35 +0000 (14:15 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 24 Mar 2017 14:15:35 +0000 (14:15 +0000)
llvm-svn: 298702

llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/utils/TableGen/X86EVEX2VEXTablesEmitter.cpp

index 1869741..7661b98 100644 (file)
@@ -997,8 +997,7 @@ bool SimplifyCFGOpt::FoldValueComparisonIntoPredecessors(TerminatorInst *TI,
       SmallSetVector<BasicBlock*, 4> FailBlocks;
       if (!SafeToMergeTerminators(TI, PTI, &FailBlocks)) {
         for (auto *Succ : FailBlocks) {
-          std::vector<BasicBlock*> Blocks = { TI->getParent() };
-          if (!SplitBlockPredecessors(Succ, Blocks, ".fold.split"))
+          if (!SplitBlockPredecessors(Succ, TI->getParent(), ".fold.split"))
             return false;
         }
       }
index cfd0836..d84f32a 100644 (file)
@@ -57,7 +57,7 @@ private:
   bool inExceptionList(const CodeGenInstruction *Inst) {
     // List of EVEX instructions that match VEX instructions by the encoding
     // but do not perform the same operation.
-    static constexpr StringLiteral ExceptionList[] = {
+    static constexpr const char *ExceptionList[] = {
         "VCVTQQ2PD",
         "VCVTQQ2PS",
         "VPMAXSQ",