[LLVMbugs] [Bug 12468] New: [VC][C2354] Reference initialized by temporary variable

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 5 11:47:18 PDT 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: ehysta at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list