[PATCH] D36670: misc-misplaced-widening-cast: fix assertion
Gábor Horváth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 15 03:45:23 PDT 2017
xazax.hun added inline comments.
================
Comment at: test/clang-tidy/misc-misplaced-widening-cast-explicit-only.cpp:63
+ enum Type {};
+ static char *m_fn1() { char p = (Type)(&p - m_fn1()); }
+};
----------------
Isn't this testcase a bit overcomplicated to demonstrate the issue?
Repository:
rL LLVM
https://reviews.llvm.org/D36670
More information about the cfe-commits
mailing list