]> granicus.if.org Git - clang/commit
InclusionRewriter: Avoid duplicated BOM check
authorAlp Toker <alp@nuanti.com>
Thu, 28 Nov 2013 07:21:44 +0000 (07:21 +0000)
committerAlp Toker <alp@nuanti.com>
Thu, 28 Nov 2013 07:21:44 +0000 (07:21 +0000)
commitcc62d5d90ad591a3e8aeaa00a672702aa56f9584
tree9643befff63420fe53afc664c1f73e8e6415c683
parentb5d4915dd52e46b7aa141b6b3c02c1c87958495a
InclusionRewriter: Avoid duplicated BOM check

The lexer already knows its position in the file, so use that instead of
guessing it might be 3.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195910 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Rewrite/Frontend/InclusionRewriter.cpp