]> granicus.if.org Git - clang/commit
Added an assert to IntegerLiteral to ensure that the integer type passed in has the...
authorRichard Trieu <rtrieu@google.com>
Mon, 2 May 2011 23:00:27 +0000 (23:00 +0000)
committerRichard Trieu <rtrieu@google.com>
Mon, 2 May 2011 23:00:27 +0000 (23:00 +0000)
commit1dd986dff9ddfbec687975700770bb377988e9ed
tree1eca5884c15a9a79939344e626686b10d47eb295
parenta87a2b2d18b7482f91994e2bba769cddea8bd0ee
Added an assert to IntegerLiteral to ensure that the integer type passed in has the same size as the APInt passed in.  Also, updated the comments around IntegerLiteral.

Changed the integer type that range-based for-loops used.  Switched to pointer difference type, which satisfies the new assert in IntegerLiteral.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130739 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Expr.h
lib/Sema/SemaStmt.cpp