]> granicus.if.org Git - clang/commitdiff
Initializing the loop hint option token again.
authorAaron Ballman <aaron@aaronballman.com>
Fri, 1 Aug 2014 12:41:37 +0000 (12:41 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 1 Aug 2014 12:41:37 +0000 (12:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214504 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParsePragma.cpp

index ddc6dfeda1247712462b37f79d3c92d6ea66e21f..ecdef48f0e228fd2f31ebef7e106770f5e0b05d8 100644 (file)
@@ -1970,6 +1970,7 @@ void PragmaUnrollHintHandler::HandlePragma(Preprocessor &PP,
     // nounroll or unroll pragma without an argument.
     Info->PragmaName = PragmaName;
     Info->HasValue = false;
+    Info->Option.startToken();
   } else if (PragmaName.getIdentifierInfo()->getName() == "nounroll") {
     PP.Diag(Tok.getLocation(), diag::warn_pragma_extra_tokens_at_eol)
         << "nounroll";