]> granicus.if.org Git - clang/commitdiff
Fix gcc build.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 19 Sep 2011 22:02:08 +0000 (22:02 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 19 Sep 2011 22:02:08 +0000 (22:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140073 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PreprocessingRecord.cpp

index b1c0c716c1c42489950252505f636ff16a002d2b..a4315b78d5bb5c910300b52710e850f10a46fb41 100644 (file)
@@ -111,7 +111,8 @@ struct PPEntityComp {
   }
 
   SourceLocation getLoc(PreprocessedEntity *PPE) const {
-    return (PPE->getSourceRange().*getRangeLoc)();
+    SourceRange Range = PPE->getSourceRange();
+    return (Range.*getRangeLoc)();
   }
 };