]> granicus.if.org Git - clang/commit
Don't crash if we can't find FileEntry info for a typedef, since one
authorEli Friedman <eli.friedman@gmail.com>
Wed, 11 Jun 2008 06:20:39 +0000 (06:20 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 11 Jun 2008 06:20:39 +0000 (06:20 +0000)
commit54ecfce94bc96947ec2059d35920a9eea3ca8569
tree5367d3f40d09e2b6a0930a42506296d8e1de4840
parent17a295d8f6679dd2b77e31df60f78bc1bfdff93b
Don't crash if we can't find FileEntry info for a typedef, since one
isn't guaranteed to exist. This fixes a crash with conflicting typedefs
coming from stdin.

This also fixes the crash in PR2406, but doesn't completely fix the
issue; it appears there's something strange about the physical location
for the definition of int64_t in stdlib.h.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52209 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Sema/typedef-redef.c [new file with mode: 0644]