r201919 - Silence a warning from r201905
Ben Langmuir
blangmuir at apple.com
Fri Feb 21 16:44:03 PST 2014
Author: benlangmuir
Date: Fri Feb 21 18:44:02 2014
New Revision: 201919
URL: http://llvm.org/viewvc/llvm-project?rev=201919&view=rev
Log:
Silence a warning from r201905
Avoid a warning about reaching the end of a non-void function after a
covered switch.
Modified:
cfe/trunk/lib/Basic/VirtualFileSystem.cpp
Modified: cfe/trunk/lib/Basic/VirtualFileSystem.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/VirtualFileSystem.cpp?rev=201919&r1=201918&r2=201919&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/VirtualFileSystem.cpp (original)
+++ cfe/trunk/lib/Basic/VirtualFileSystem.cpp Fri Feb 21 18:44:02 2014
@@ -554,6 +554,7 @@ class VFSFromYAMLParser {
Status("", "", getNextVirtualUniqueID(), sys::TimeValue::now(), 0, 0,
0, file_type::directory_file, sys::fs::all_all));
}
+ llvm_unreachable("unknown EntryKind in switch");
}
public:
More information about the cfe-commits
mailing list