r214502 - Initializing the loop hint option token.

Aaron Ballman aaron at aaronballman.com
Fri Aug 1 05:20:20 PDT 2014


Author: aaronballman
Date: Fri Aug  1 07:20:20 2014
New Revision: 214502

URL: http://llvm.org/viewvc/llvm-project?rev=214502&view=rev
Log:
Initializing the loop hint option token.

Modified:
    cfe/trunk/lib/Parse/ParsePragma.cpp

Modified: cfe/trunk/lib/Parse/ParsePragma.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParsePragma.cpp?rev=214502&r1=214501&r2=214502&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParsePragma.cpp (original)
+++ cfe/trunk/lib/Parse/ParsePragma.cpp Fri Aug  1 07:20:20 2014
@@ -1982,7 +1982,9 @@ void PragmaUnrollHintHandler::HandlePrag
     if (ValueInParens)
       PP.Lex(Tok);
 
-    if (ParseLoopHintValue(PP, Tok, PragmaName, Token(), ValueInParens, *Info))
+    Token Option;
+    Option.startToken();
+    if (ParseLoopHintValue(PP, Tok, PragmaName, Option, ValueInParens, *Info))
       return;
 
     // In CUDA, the argument to '#pragma unroll' should not be contained in





More information about the cfe-commits mailing list