diff options
author | Enrico Granata <egranata@apple.com> | 2014-10-07 22:15:27 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2014-10-07 22:15:27 +0000 |
commit | 29551955a9227812848656b95451ec6dd824690b (patch) | |
tree | 7443597fc5c94ce7e89cb61c1968a8f956deb6db /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 2959356958c7f265c55d98e962e61af623773d44 (diff) | |
download | llvm-29551955a9227812848656b95451ec6dd824690b.zip llvm-29551955a9227812848656b95451ec6dd824690b.tar.gz llvm-29551955a9227812848656b95451ec6dd824690b.tar.bz2 |
The type category enable * was implemented assuming a previous disable * had happened. While that will most likely be true in practice, the consequences of this not being the case will be a crash. I fix the crash by doing two things: 1) don't let already-enabled categories be enabled anyway; 2) if a category were disabled but with a bogus last-enabled position - highly highly unlikely - just put it in the first empty slot. I am not so sure 2) is bulletproof perfect, but I also don't think 2) will practically ever happen
llvm-svn: 219245
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions