From 9625d162e52552164d54e95ab4800f7223516570 Mon Sep 17 00:00:00 2001 From: Adam Nemet Date: Tue, 19 Apr 2016 22:29:24 +0000 Subject: [PATCH] [Parse] Reuse OptionUnroll rather than matching it again. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266829 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Parse/ParsePragma.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Parse/ParsePragma.cpp b/lib/Parse/ParsePragma.cpp index 3a997c818c..2352fbe4d8 100644 --- a/lib/Parse/ParsePragma.cpp +++ b/lib/Parse/ParsePragma.cpp @@ -824,8 +824,7 @@ bool Parser::HandlePragmaLoopHint(LoopHint &Hint) { StateOption = llvm::StringSwitch(OptionInfo->getName()) .Case("vectorize", true) .Case("interleave", true) - .Case("unroll", true) - .Default(false); + .Default(false) || OptionUnroll; } // Verify loop hint has an argument. -- 2.40.0