llvm/lib/IR
Yaron Keren d816eda3c7 In Release modes, Visual Studio complains that the Operator destructor in User.cpp
never returns, which is true by design. 

Initially assumed that the reason is llvm_unreachable being dependent on NDEBUG.

However, even if llvm_unreachable is replaced by __assume(false), VC still warns in
Release modes but not in Debug modes...

The real reason turned out to be optimization flags.
With /Od in Debug modes the warning is not issued whereas with /O1 it is.

I could not find any documentation to this effect, but it is reproducable:

Try compiling http://msdn.microsoft.com/en-us/library/khwfyc5d(v=vs.90).aspx
with /O1 and then with /Od.




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204659 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-24 19:48:13 +00:00
..
AsmWriter.cpp Make some assertions on constant expressions static. 2014-03-15 18:47:07 +00:00
AsmWriter.h IR: add a second ordering operand to cmpxhg for failure 2014-03-11 10:48:52 +00:00
AttributeImpl.h [C++11] Add 'override' keyword to IR library. 2014-03-05 06:35:38 +00:00
Attributes.cpp
AutoUpgrade.cpp [C++11] Add range based accessors for the Use-Def chain of a Value. 2014-03-09 03:16:01 +00:00
BasicBlock.cpp [C++11] Add range based accessors for the Use-Def chain of a Value. 2014-03-09 03:16:01 +00:00
CMakeLists.txt
ConstantFold.cpp
ConstantFold.h
ConstantRange.cpp
Constants.cpp [C++11] Add range based accessors for the Use-Def chain of a Value. 2014-03-09 03:16:01 +00:00
ConstantsContext.h [C++11] Add 'override' keyword to IR library. 2014-03-05 06:35:38 +00:00
Core.cpp Remove the linker_private and linker_private_weak linkages. 2014-03-13 23:18:37 +00:00
DataLayout.cpp [C++11] Modernize the IR library a bit. 2014-03-10 15:03:06 +00:00
DebugInfo.cpp remove a bunch of unused private methods 2014-03-23 17:09:26 +00:00
DebugLoc.cpp [Layering] Move DebugInfo.h into the IR library where its implementation 2014-03-06 00:46:21 +00:00
DiagnosticInfo.cpp Use DiagnosticInfo facility. 2014-03-14 21:58:59 +00:00
DiagnosticPrinter.cpp
DIBuilder.cpp Switch the type field in DIVariable and DIGlobalVariable over to DITypeRefs. 2014-03-18 02:34:58 +00:00
Dominators.cpp
Function.cpp Revert r203488 and r203520. 2014-03-12 18:09:37 +00:00
GCOV.cpp Replace OwningPtr<T> with std::unique_ptr<T>. 2014-03-06 05:51:42 +00:00
Globals.cpp [Modules] Move the LeakDetector header into the IR library where the 2014-03-04 12:46:06 +00:00
GVMaterializer.cpp [Layering] Move GVMaterializer.h into the IR library where its 2014-03-06 03:50:29 +00:00
InlineAsm.cpp Remove copy ctors that did the same thing as the default one. 2014-03-11 11:32:49 +00:00
Instruction.cpp IR: add a second ordering operand to cmpxhg for failure 2014-03-11 10:48:52 +00:00
Instructions.cpp IR: add a second ordering operand to cmpxhg for failure 2014-03-11 10:48:52 +00:00
IntrinsicInst.cpp
IRBuilder.cpp
IRPrintingPasses.cpp [C++11] Add 'override' keyword to IR library. 2014-03-05 06:35:38 +00:00
LeakDetector.cpp [Modules] Move the LeakDetector header into the IR library where the 2014-03-04 12:46:06 +00:00
LeaksContext.h
LegacyPassManager.cpp [C++11] Add 'override' keyword to IR library. 2014-03-05 06:35:38 +00:00
LLVMBuild.txt
LLVMContext.cpp
LLVMContextImpl.cpp
LLVMContextImpl.h [C++11] Add 'override' keyword to IR library. 2014-03-05 06:35:38 +00:00
Makefile
Mangler.cpp Remove the linker_private and linker_private_weak linkages. 2014-03-13 23:18:37 +00:00
Metadata.cpp [C++11] Modernize the IR library a bit. 2014-03-10 15:03:06 +00:00
Module.cpp Module: Don't rename in getOrInsertFunction() 2014-03-10 23:42:28 +00:00
Pass.cpp [C++11] Add 'override' keyword to IR library. 2014-03-05 06:35:38 +00:00
PassManager.cpp Fix comment (PR19188) 2014-03-19 18:41:38 +00:00
PassRegistry.cpp
SymbolTableListTraitsImpl.h
Type.cpp
TypeFinder.cpp
Use.cpp
User.cpp In Release modes, Visual Studio complains that the Operator destructor in User.cpp 2014-03-24 19:48:13 +00:00
Value.cpp [C++11] Add range based accessors for the Use-Def chain of a Value. 2014-03-09 03:16:01 +00:00
ValueSymbolTable.cpp
ValueTypes.cpp
Verifier.cpp [C++11] Change DebugInfoFinder to use range-based loops 2014-03-18 09:41:07 +00:00