http://llvm.org/bugs/show_bug.cgi?id=12468
Bug #: 12468
Summary: [VC][C2354] Reference initialized by temporary
variable
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: release blocker
Priority: P
Component: LLVM Codegen
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Index: Passes.cpp
===================================================================
--- Passes.cpp (revision 154107)
+++ Passes.cpp (working copy)
@@ -232,8 +232,10 @@
return new TargetPassConfig(this, PM);
}
+static PassManagerBase* nullPassManagerBase = 0;
+
TargetPassConfig::TargetPassConfig()
- : ImmutablePass(ID), PM(*(PassManagerBase*)0) {
+ : ImmutablePass(ID), PM(*nullPassManagerBase) {
llvm_unreachable("TargetPassConfig should not be constructed on-the-fly");
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs