diff options
author | John Criswell <criswell@uiuc.edu> | 2003-09-09 16:36:09 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2003-09-09 16:36:09 +0000 |
commit | 8d575cb2e1bb7ba5ac5249a21423f785483854a3 (patch) | |
tree | 99c68ffb6322088341f9d3809c782787b803b4e6 /llvm/lib/VMCore/Function.cpp | |
parent | 230cffbeb337180364ec9bd85b401144017889ce (diff) | |
download | bcm5719-llvm-8d575cb2e1bb7ba5ac5249a21423f785483854a3.tar.gz bcm5719-llvm-8d575cb2e1bb7ba5ac5249a21423f785483854a3.zip |
Modified the check for intrinsic functions. All intrinsic functions have to
be at least 6 characters, since something must follow the "llvm." string in the
function name.
This seems to fix an assertion failure with the SingleSource tests, too.
llvm-svn: 8418
Diffstat (limited to 'llvm/lib/VMCore/Function.cpp')
-rw-r--r-- | llvm/lib/VMCore/Function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp index 74098ffc45a..5ef4ce47a99 100644 --- a/llvm/lib/VMCore/Function.cpp +++ b/llvm/lib/VMCore/Function.cpp @@ -159,7 +159,7 @@ void Function::dropAllReferences() { /// llvm/Intrinsics.h. /// unsigned Function::getIntrinsicID() const { - if (getName().size() <= 5 || getName()[4] != '.' || getName()[0] != 'l' || + if (getName().size() <= 6 || getName()[4] != '.' || getName()[0] != 'l' || getName()[1] != 'l' || getName()[2] != 'v' || getName()[3] != 'm') return 0; // All intrinsics start with 'llvm.' |