Reikriam

clang diff

Apr 30th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. diff --git a/clang/lib/AST/TemplateBase.cpp b/clang/lib/AST/TemplateBase.cpp
  2. index 0d2e54d8d9a..17f652db4b5 100644
  3. --- a/clang/lib/AST/TemplateBase.cpp
  4. +++ b/clang/lib/AST/TemplateBase.cpp
  5. @@ -78,9 +78,9 @@ static void printIntegral(const TemplateArgument &TemplArg,
  6. } else {
  7. Out << Val;
  8. if (T->isBuiltinType()) {
  9. - if (Val.isUnsigned())
  10. + if (T->isUnsignedIntegerType())
  11. Out << "U";
  12. - if (Val.getBitWidth() == 64)
  13. + if (T->isIntegerType() && Val.getBitWidth() == 64)
  14. Out << "LL";
  15. }
  16. }
Add Comment
Please, Sign In to add comment