diff options
author | Zachary Turner <zturner@google.com> | 2016-12-20 17:57:56 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-12-20 17:57:56 +0000 |
commit | ada16b6e905aa31c387be79ec44e17157380a051 (patch) | |
tree | 3f6fa09341e4d1f2994608db35e57016808a9d90 /llvm/lib/Analysis/MemoryBuiltins.cpp | |
parent | d21e08ee707425750029d56266cd6a9e50e20848 (diff) | |
download | bcm5719-llvm-ada16b6e905aa31c387be79ec44e17157380a051.tar.gz bcm5719-llvm-ada16b6e905aa31c387be79ec44e17157380a051.zip |
Re-add the assert to StringRef's const char *, length constructor.
By putting the assert behind a conditional in the initializer list
we can ensure that it will still work in a constexpr context as
the else branch of the ternary operator won't be examined unless
the condition fails.
llvm-svn: 290188
Diffstat (limited to 'llvm/lib/Analysis/MemoryBuiltins.cpp')
0 files changed, 0 insertions, 0 deletions