The argument range checks for the HTM and Crypto builtins were implemented in CGBuiltin.cpp, not in Sema. This change moves them to the appropriate location in SemaChecking.cpp. It requires the creation of a new method in the Sema class to do checks for PPC-specific builtins.
Diff Detail
Diff Detail
Event Timeline
Comment Actions
One stylistic comment from me; otherwise looks just fine. I'll defer to Richard as he has much more expertise here.
lib/Sema/SemaChecking.cpp | ||
---|---|---|
913 | I don't particularly like this style of putting the code on the same line as the case (I realize it fits in with the surrounding code). It obfuscates that this code is shared by tbegin and tend, for example. |
Parens not necessary here.