[LLVMbugs] [Bug 22820] New: Assertion `Val && "isa<> used on a null pointer"' failed
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Mar 6 06:35:55 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22820
Bug ID: 22820
Summary: Assertion `Val && "isa<> used on a null pointer"'
failed
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: alexis.breust at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13990
--> http://llvm.org/bugs/attachment.cgi?id=13990&action=edit
Launch script
Hello everyone,
I made a bit of work to track it down to a minimal example.
Here what I came with:
#include <cmath>
void init(const double a) {
double ua = (a < 0.0)? -a : a;
if (ua > 13.0)
ua = std::fmod(ua, 13.0);
}
int main(void) {
init(1.0);
return 0;
}
This produces:
clang: /home/breusta/tmp/llvm/include/llvm/Support/Casting.h:95: static bool
llvm::isa_impl_cl<To, const From*>::doit(const From*) [with To = llvm::MDNode;
>From = llvm::Metadata]: Assertion `Val && "isa<> used on a null pointer"'
failed.
(...)
clang version 3.6.0 (trunk 223924)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150306/4cb9376f/attachment.html>
More information about the llvm-bugs
mailing list