aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-10-21 22:10:23 +0000
committerJustin Lebar <jlebar@google.com>2016-10-21 22:10:23 +0000
commit7b15e2946fabc5b873ed4b610b21e235f573eba8 (patch)
tree38c96f8dcff0bf47d823faa462f23995ac6ca626 /clang/lib/Lex/ModuleMap.cpp
parentfda33eaf0cc63f6b25fd0e236bceeb1ae31ebfae (diff)
downloadllvm-7b15e2946fabc5b873ed4b610b21e235f573eba8.zip
llvm-7b15e2946fabc5b873ed4b610b21e235f573eba8.tar.gz
llvm-7b15e2946fabc5b873ed4b610b21e235f573eba8.tar.bz2
[ADT] Don't rely on string literals not being convertible to non-const char* in CachedHashString.
The build was breaking on some platforms because we assumed that CachedHashString("foo") would match the CachedHashString(StringRef) constructor rather than the CachedHashString(char*) constructor. To fix this, provide a CachedHashString(const char*) constructor, and add a dummy argument to the old CachedHashString(char*) constructor. llvm-svn: 284892
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions