r194156 - Silencing some MSVC warnings about not all control paths returning a value when they actually do.
Aaron Ballman
aaron at aaronballman.com
Wed Nov 6 10:15:03 PST 2013
Author: aaronballman
Date: Wed Nov 6 12:15:02 2013
New Revision: 194156
URL: http://llvm.org/viewvc/llvm-project?rev=194156&view=rev
Log:
Silencing some MSVC warnings about not all control paths returning a value when they actually do.
Modified:
cfe/trunk/lib/AST/ExprConstant.cpp
Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=194156&r1=194155&r2=194156&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Wed Nov 6 12:15:02 2013
@@ -652,6 +652,7 @@ namespace {
case EM_ConstantFold:
return false;
}
+ llvm_unreachable("Missed EvalMode case");
}
/// Note that we have had a side-effect, and determine whether we should
@@ -677,6 +678,7 @@ namespace {
case EM_IgnoreSideEffects:
return false;
}
+ llvm_unreachable("Missed EvalMode case");
}
};
More information about the cfe-commits
mailing list