diff options
author | Charles Davis <cdavis@mines.edu> | 2010-08-19 02:18:14 +0000 |
---|---|---|
committer | Charles Davis <cdavis@mines.edu> | 2010-08-19 02:18:14 +0000 |
commit | 20cf717034ba1f20fc47c025ecb72ed9b631ad13 (patch) | |
tree | 5465f2c82f0d3caf0bce2ffe9db91be515f3a73a /lib/Sema/SemaType.cpp | |
parent | 671947b18dba342f9aba022ee992babef325a833 (diff) |
Add some enum goodness as requested by Chris. Now instead of storing the
active C++ ABI as a raw string, we store it as an enum. This should improve
performance somewhat.
And yes, this time, I started from a clean build directory, and
all the tests passed. :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r-- | lib/Sema/SemaType.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index e3628c1d5f..1fdb17f4d2 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -897,7 +897,7 @@ QualType Sema::BuildMemberPointerType(QualType T, QualType Class, // type. In such cases, the compiler makes a worst-case assumption. // We make no such assumption right now, so emit an error if the // class isn't a complete type. - if (Context.Target.getCXXABI() == "microsoft" && + if (Context.Target.getCXXABI() == CXXABI_Microsoft && RequireCompleteType(Loc, Class, diag::err_incomplete_type)) return QualType(); |