aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/TargetInfo.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-06-27 18:45:19 +0000
committerDouglas Gregor <dgregor@apple.com>2011-06-27 18:45:19 +0000
commit7e47e1e7e6a2b83d903c97129f27e92f584c3dc2 (patch)
tree6383f23b74298e6116ef7bf2f2ef7d89042cea35 /include/clang/Basic/TargetInfo.h
parentd0e8b782787638bcc9c57022e47c28d3529f02d4 (diff)
Reduce the size of the ExtInfo bitfield in FunctionType from 9 bits
down to 8 by restricting the maximum allowed regparm value to 6 (previously it was 7). I need the extra bit in Type to handle instantiation-dependence. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133924 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/TargetInfo.h')
-rw-r--r--include/clang/Basic/TargetInfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clang/Basic/TargetInfo.h b/include/clang/Basic/TargetInfo.h
index f0c3d0a9bb..a1625bfc9e 100644
--- a/include/clang/Basic/TargetInfo.h
+++ b/include/clang/Basic/TargetInfo.h
@@ -524,6 +524,7 @@ public:
// getRegParmMax - Returns maximal number of args passed in registers.
unsigned getRegParmMax() const {
+ assert(RegParmMax < 7 && "RegParmMax value is larger than AST can handle");
return RegParmMax;
}