Skip to content

Commit b68df87

Browse files
authored
[TableGen] Fix build failure by using int type for NextChar (llvm#103000)
Fixes an issue in llvm#102967, which inddvertently changed the type of `NextChar` from int to char, causing ppc64le build failures.
1 parent d4dfeb3 commit b68df87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/TableGen/TGLexer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ tgtok::TokKind TGLexer::prepIsDirective() const {
644644
for (const auto [Kind, Word] : PreprocessorDirs) {
645645
if (StringRef(CurPtr, Word.size()) != Word)
646646
continue;
647-
char NextChar = peekNextChar(Word.size());
647+
int NextChar = peekNextChar(Word.size());
648648

649649
// Check for whitespace after the directive. If there is no whitespace,
650650
// then we do not recognize it as a preprocessing directive.

0 commit comments

Comments
 (0)